VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Annotation.Web.HttpHandlers Namespace / VintasoftAnnotationCollectionHandler Class / CreateSessionDataStorage Method
The session identifier.



In This Topic
    CreateSessionDataStorage Method (VintasoftAnnotationCollectionHandler)
    In This Topic
    Creates a data storage for current session.
    Syntax
    'Declaration
     
    Protected Overridable Function CreateSessionDataStorage( _
       ByVal sessionId As String _
    ) As IDataStorage
    protected virtual IDataStorage CreateSessionDataStorage( 
       string sessionId
    )
    protected: virtual IDataStorage* CreateSessionDataStorage( 
       string* sessionId
    ) 
    protected:
    virtual 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.StreamDataStorageOnDisk storage that works with "{Project Path}/UploadedImageFiles[/{SessionID}]" directory.

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

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also