Table of Contents

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

CancellationToken

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

disposing bool

A value indicating whether the method has been called by the Dispose method and not from the finalizer.

DisposeAsync()

public ValueTask DisposeAsync()

Returns

ValueTask

DisposeCoreAsync()

protected abstract ValueTask DisposeCoreAsync()

Returns

ValueTask

~DistributedLockHandle()

Finalizes an instance of the DistributedLockHandle class.

protected ~DistributedLockHandle()