Interface IMainDomLock
An application-wide distributed lock
Namespace: Umbraco.Cms.Core.Runtime
Assembly: Umbraco.Core.dll
Syntax
public interface IMainDomLock
Remarks
Disposing releases the lock
Methods
View SourceAcquireLockAsync(int)
Acquires an application-wide distributed lock
Declaration
Task<bool> AcquireLockAsync(int millisecondsTimeout)
Parameters
| Type | Name | Description |
|---|---|---|
| int | millisecondsTimeout |
Returns
| Type | Description |
|---|---|
| Task<bool> | 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 |