Search Results for

    Show / Hide Table of Contents
    View Source

    Class SqliteDistributedLockingMechanism

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Persistence.Sqlite.Services
    Assembly: Umbraco.Cms.Persistence.Sqlite.dll
    Syntax
    public class SqliteDistributedLockingMechanism : IDistributedLockingMechanism

    Constructors

    View Source

    SqliteDistributedLockingMechanism(ILogger<SqliteDistributedLockingMechanism>, Lazy<IScopeAccessor>, IOptionsMonitor<GlobalSettings>, IOptionsMonitor<ConnectionStrings>)

    Declaration
    public SqliteDistributedLockingMechanism(ILogger<SqliteDistributedLockingMechanism> logger, Lazy<IScopeAccessor> scopeAccessor, IOptionsMonitor<GlobalSettings> globalSettings, IOptionsMonitor<ConnectionStrings> connectionStrings)
    Parameters
    Type Name Description
    ILogger<SqliteDistributedLockingMechanism> logger
    Lazy<IScopeAccessor> scopeAccessor
    IOptionsMonitor<GlobalSettings> globalSettings
    IOptionsMonitor<ConnectionStrings> connectionStrings

    Properties

    View Source

    Enabled

    Declaration
    public bool Enabled { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    View Source

    ReadLock(Int32, Nullable<TimeSpan>)

    Declaration
    public IDistributedLock ReadLock(int lockId, TimeSpan? obtainLockTimeout = null)
    Parameters
    Type Name Description
    System.Int32 lockId
    System.Nullable<TimeSpan> obtainLockTimeout
    Returns
    Type Description
    IDistributedLock
    View Source

    WriteLock(Int32, Nullable<TimeSpan>)

    Declaration
    public IDistributedLock WriteLock(int lockId, TimeSpan? obtainLockTimeout = null)
    Parameters
    Type Name Description
    System.Int32 lockId
    System.Nullable<TimeSpan> obtainLockTimeout
    Returns
    Type Description
    IDistributedLock
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • SqliteDistributedLockingMechanism(ILogger<SqliteDistributedLockingMechanism>, Lazy<IScopeAccessor>, IOptionsMonitor<GlobalSettings>, IOptionsMonitor<ConnectionStrings>)
    • Properties
      • Enabled
    • Methods
      • ReadLock(Int32, Nullable<TimeSpan>)
      • WriteLock(Int32, Nullable<TimeSpan>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX