Allows to acquire and release a named lock returned by GetLock(string).
Namespace: PostSharp.Patterns.Caching.Locking
Assembly: PostSharp.Patterns.Caching.dll
Syntax
public interface ILockHandle : IDisposable
Methods
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. |