VintaSoft Imaging .NET SDK 12.5: Documentation for Web developer
Vintasoft.Imaging.Annotation.AspNetCore.ApiControllers Namespace / VintasoftAnnotationCollectionApiController Class / CreateSessionDataStorage(String) Method
Syntax Exceptions Remarks Requirements SeeAlso
In This Topic
    CreateSessionDataStorage(String) Method (VintasoftAnnotationCollectionApiController)
    In This Topic
    Creates a data storage for current session.
    Syntax
    'Declaration
    
    Protected Overridable Function CreateSessionDataStorage( _
    ByVal sessionId
    The session identifier.
    As String _
    ) As Vintasoft.Data.IDataStorage
    protected virtual Vintasoft.Data.IDataStorage CreateSessionDataStorage(
    string sessionId
    )
    protected: virtual Vintasoft.Data.IDataStorage CreateSessionDataStorage(
    string* sessionId
    )
    protected:
    virtual Vintasoft.Data.IDataStorage CreateSessionDataStorage(
    string^ sessionId
    )

    Parameters

    sessionId
    The session identifier.

    Return Value

    The data storage.
    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 Vintasoft.Data.StreamDataStorage storage that works with "{Project Path}/wwwroot/UploadedImageFiles[/{SessionID}]" directory.

    Important: The overridden method must return data storage that can store System.IO.Stream objects.

    Requirements

    Target Platforms: .NET 8; .NET 7, .NET 6

    See Also