View Source
Class SqlMainDomLock
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public class SqlMainDomLock : IMainDomLock
Constructors
View Source
SqlMainDomLock(ILoggerFactory, IOptions<GlobalSettings>, IOptionsMonitor<ConnectionStrings>, IDbProviderFactoryCreator, IMainDomKeyGenerator, DatabaseSchemaCreatorFactory, NPocoMapperCollection)
Declaration
public SqlMainDomLock(ILoggerFactory loggerFactory, IOptions<GlobalSettings> globalSettings, IOptionsMonitor<ConnectionStrings> connectionStrings, IDbProviderFactoryCreator dbProviderFactoryCreator, IMainDomKeyGenerator mainDomKeyGenerator, DatabaseSchemaCreatorFactory databaseSchemaCreatorFactory, NPocoMapperCollection npocoMappers)
Parameters
Methods
View Source
AcquireLockAsync(Int32)
Declaration
public async Task<bool> AcquireLockAsync(int millisecondsTimeout)
Parameters
Type |
Name |
Description |
System.Int32 |
millisecondsTimeout |
|
Returns
Type |
Description |
Task<System.Boolean> |
|
View Source
Dispose()
Declaration
View Source
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
View Source
ListenAsync()
Declaration
public Task ListenAsync()
Returns