Interface IMainDomLock
An application-wide distributed lock
Namespace: Umbraco.Cms.Core.Runtime
Assembly: Umbraco.Core.dll
Syntax
public interface IMainDomLockRemarks
Disposing releases the lock
Methods
View SourceAcquireLockAsync(Int32)
Acquires an application-wide distributed lock
Declaration
Task<bool> AcquireLockAsync(int millisecondsTimeout)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | millisecondsTimeout | 
Returns
| Type | Description | 
|---|---|
| Task<System.Boolean> | An awaitable boolean value which will be false if the elapsed millsecondsTimeout value is exceeded | 
ListenAsync()
Wait on a background thread to receive a signal from another AppDomain
Declaration
Task ListenAsync()Returns
| Type | Description | 
|---|---|
| Task |