Class DistributedLockHandle
- Namespace
- Silverback.Lock
- Assembly
- Silverback.Core.dll
A handle to the distributed lock. Dispose this to unlock.
public abstract class DistributedLockHandle : IDisposable, IAsyncDisposable
- Inheritance
-
DistributedLockHandle
- Implements
- Inherited Members
Constructors
DistributedLockHandle()
protected DistributedLockHandle()
Properties
LockLostToken
Gets a CancellationToken that will be canceled if the lock is lost.
public abstract CancellationToken LockLostToken { get; }
Property Value
Methods
Dispose()
public void Dispose()
Dispose(bool)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected abstract void Dispose(bool disposing)
Parameters
disposingboolA value indicating whether the method has been called by the
Disposemethod and not from the finalizer.
DisposeAsync()
public ValueTask DisposeAsync()
Returns
DisposeCoreAsync()
protected abstract ValueTask DisposeCoreAsync()
Returns
~DistributedLockHandle()
Finalizes an instance of the DistributedLockHandle class.
protected ~DistributedLockHandle()