Interface IDistributedLock
- Namespace
- Silverback.Lock
- Assembly
- Silverback.Core.dll
Exposes the methods to acquire and release a lock.
public interface IDistributedLock
Methods
AcquireAsync(CancellationToken)
Acquires the lock.
ValueTask<DistributedLockHandle> AcquireAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA CancellationToken used to cancel the operation.
Returns
- ValueTask<DistributedLockHandle>
A Task representing the asynchronous operation.