View Source
Class SqliteDistributedLockingMechanism
Inheritance
System.Object
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
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 |
|