Show / Hide Table of Contents

    Class DistributedLockSettings

    The DistributedLock settings.

    Inheritance
    object
    DistributedLockSettings
    InMemoryLockSettings
    PostgreSqlAdvisoryLockSettings
    TableBasedDistributedLockSettings
    Implements
    IValidatableSettings
    IEquatable<DistributedLockSettings>
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Silverback.Lock
    Assembly: Silverback.Core.dll
    Syntax
    public abstract record DistributedLockSettings : IValidatableSettings, IEquatable<DistributedLockSettings>

    Constructors

    DistributedLockSettings(DistributedLockSettings)

    The DistributedLock settings.

    Declaration
    protected DistributedLockSettings(DistributedLockSettings original)
    Parameters
    Type Name Description
    DistributedLockSettings original

    DistributedLockSettings(string)

    Initializes a new instance of the DistributedLockSettings class.

    Declaration
    protected DistributedLockSettings(string lockName)
    Parameters
    Type Name Description
    string lockName

    The name of the lock.

    Properties

    EqualityContract

    The DistributedLock settings.

    Declaration
    protected virtual Type EqualityContract { get; }
    Property Value
    Type Description
    Type

    LockName

    Gets the name of the lock.

    Declaration
    public string LockName { get; }
    Property Value
    Type Description
    string

    Methods

    Equals(DistributedLockSettings?)

    The DistributedLock settings.

    Declaration
    public virtual bool Equals(DistributedLockSettings? other)
    Parameters
    Type Name Description
    DistributedLockSettings other
    Returns
    Type Description
    bool

    Equals(object?)

    The DistributedLock settings.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)

    GetHashCode()

    The DistributedLock settings.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    PrintMembers(StringBuilder)

    The DistributedLock settings.

    Declaration
    protected virtual bool PrintMembers(StringBuilder builder)
    Parameters
    Type Name Description
    StringBuilder builder
    Returns
    Type Description
    bool

    ToString()

    The DistributedLock settings.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Validate()

    Throws a SilverbackConfigurationException if the configuration is not valid.

    Declaration
    public virtual void Validate()

    Operators

    operator ==(DistributedLockSettings?, DistributedLockSettings?)

    The DistributedLock settings.

    Declaration
    public static bool operator ==(DistributedLockSettings? left, DistributedLockSettings? right)
    Parameters
    Type Name Description
    DistributedLockSettings left
    DistributedLockSettings right
    Returns
    Type Description
    bool

    operator !=(DistributedLockSettings?, DistributedLockSettings?)

    The DistributedLock settings.

    Declaration
    public static bool operator !=(DistributedLockSettings? left, DistributedLockSettings? right)
    Parameters
    Type Name Description
    DistributedLockSettings left
    DistributedLockSettings right
    Returns
    Type Description
    bool

    Implements

    IValidatableSettings
    IEquatable<T>
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini