Search Results for

    Show / Hide Table of Contents
    View Source

    Class SqlServerDistributedLockingMechanism

    SQL Server implementation of .

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

    Constructors

    View Source

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

    Initializes a new instance of the SqlServerDistributedLockingMechanism class.

    Declaration
    public SqlServerDistributedLockingMechanism(ILogger<SqlServerDistributedLockingMechanism> logger, Lazy<IScopeAccessor> scopeAccessor, IOptionsMonitor<GlobalSettings> globalSettings, IOptionsMonitor<ConnectionStrings> connectionStrings)
    Parameters
    Type Name Description
    ILogger<SqlServerDistributedLockingMechanism> 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
      • SqlServerDistributedLockingMechanism(ILogger<SqlServerDistributedLockingMechanism>, 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