Allows to acquire and release a named lock returned by ILockingStrategy.
Namespace: Metalama.Patterns.Caching.Locking
Assembly: Metalama.Patterns.Caching.Backend.dll
Syntax
public interface ILockHandle : IDisposableMethods
| Name | Description |
|---|---|
| Acquire(TimeSpan, CancellationToken) | Synchronously acquires the lock bound to the current handle. |
| AcquireAsync(TimeSpan, CancellationToken) | Asynchronously acquires the lock bound to the current handle. |
| Release() | Synchronously releases the lock bound to the current handle. |
| ReleaseAsync() | Asynchronously releases the lock bound to the current handle. |