VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.Web.Api2Controllers Namespace / VintasoftFileConverterApi2Controller Class / CreateConvertedFilesCacheManager(String) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
CreateConvertedFilesCacheManager(String) Method (VintasoftFileConverterApi2Controller)
In This Topic
Creates a cache manager that manages cache of converted files.
Syntax
'Declaration

Protected Overridable Function CreateConvertedFilesCacheManager( _
ByVal sessionId
The session identifier.
As String _
) As Vintasoft.Imaging.Web.Services.ConvertedFilesCacheManager
protected virtual Vintasoft.Imaging.Web.Services.ConvertedFilesCacheManager CreateConvertedFilesCacheManager(
string sessionId
)

Parameters

sessionId
The session identifier.

Return Value

A cache manager that manages cache of converted files.
Exceptions
ExceptionDescription
Thrown if IsEmptySessionSupported = true and sessionId is null.
Thrown if the physical path to the root of the application is not defined, i.e. service is used in not ASP.NET application.
Remarks

By default method creates the ConvertedFilesCacheManager that works with directory "{Project_Path}/VintasoftCache[/{SessionID}]/ConvertedFiles".

If you want to create the ConvertedFilesCacheManager that works with custom directory, set value of DataDirectoryDefaultPath property and method will create Vintasoft.Data.StreamDataStorage that works with directory "{WebServicesGlobalSettings.DataDirectoryDefaultPath}/VintasoftCache[/{SessionID}]/ConvertedFiles".

Requirements

Target Platforms: .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also