VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.Annotation.Web.HttpHandlers Namespace / VintasoftAnnotationCollectionHandler Class / CreateAnnotationsCacheManager(String) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
CreateAnnotationsCacheManager(String) Method (VintasoftAnnotationCollectionHandler)
In This Topic
Creates cache manager that manages cache of annotation collections.
Syntax
'Declaration

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

Parameters

sessionId
The session identifier.

Return Value

A cache manager that manages cache of annotation collections.
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 AnnotationsCacheManager that works with directory "{Project_Path}/VintasoftCache[/{SessionID}]/Annotations".

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

Requirements

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

See Also