View Source
Class SqlMainDomLock
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class SqlMainDomLock : IMainDomLock, IDisposable
Constructors
View Source
SqlMainDomLock(ILogger, String)
Declaration
public SqlMainDomLock(ILogger logger, string connectionStringName = "umbracoDbDSN")
Parameters
Type |
Name |
Description |
ILogger |
logger |
|
System.String |
connectionStringName |
|
Methods
View Source
AcquireLockAsync(Int32)
Declaration
public async Task<bool> AcquireLockAsync(int millisecondsTimeout)
Parameters
Type |
Name |
Description |
System.Int32 |
millisecondsTimeout |
|
Returns
Type |
Description |
System.Threading.Tasks.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
Type |
Description |
System.Threading.Tasks.Task |
|