VintaSoft Imaging .NET SDK 15.1: Documentation for Web developer
Vintasoft.Imaging.Annotation.AspNetCore.ApiControllers Namespace / VintasoftAnnotationCollectionApiController Class / CreateAnnotationsCacheManager(String) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    CreateAnnotationsCacheManager(String) Method (VintasoftAnnotationCollectionApiController)
    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
    )
    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 10; .NET 9; .NET 8; .NET 7, .NET 6

    See Also