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