View Source
Class MainDomSemaphoreLock
Uses a system-wide Semaphore and EventWaitHandle to synchronize the current AppDomain
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class MainDomSemaphoreLock : IMainDomLock
Constructors
View Source
MainDomSemaphoreLock(ILogger<MainDomSemaphoreLock>, IHostingEnvironment)
Declaration
public MainDomSemaphoreLock(ILogger<MainDomSemaphoreLock> logger, IHostingEnvironment hostingEnvironment)
Parameters
Methods
View Source
AcquireLockAsync(Int32)
Declaration
public 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