Show / Hide Table of Contents

    Class DistributedLockHandle

    A handle to the distributed lock. Dispose this to unlock.

    Inheritance
    object
    DistributedLockHandle
    Implements
    IDisposable
    IAsyncDisposable
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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 Dispose method and not from the finalizer.

    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()

    Implements

    IDisposable
    IAsyncDisposable
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini