HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Property SharingMode

    SharingMode

    Gets or sets whether other processes use Directory too, such as the other servers of a service that share it (Shared), or only this process does (ProcessLocal). It is Unspecified while it is not set.

    Declaration
    public required StoreSharingMode SharingMode { get; set; }
    Property Value
    Type Description
    StoreSharingMode
    Remarks

    With ProcessLocal, the store is process-local (see SharingMode). It holds a lock file in the directory, uploads.lock, open without sharing from the start of the application until it stops, and the application fails to start, without waiting, if another process holds it. The process of an overlapped restart, such as of an IIS application pool with overlapped recycling, then fails to start while the previous process runs.

    With Shared, the store takes no lock, and the IShortLivedStore must be shared too (see SharingMode), or the application fails to start.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException

    The value is Unspecified, other than while it is not set, or not a value of StoreSharingMode.

    © Singulink. All rights reserved.