Show / Hide Table of Contents

    Class PostgreSqlTableLockSettings

    The PostgreSqlTableLock settings.

    Inheritance
    object
    DistributedLockSettings
    TableBasedDistributedLockSettings
    PostgreSqlTableLockSettings
    Implements
    IValidatableSettings
    IEquatable<DistributedLockSettings>
    IEquatable<TableBasedDistributedLockSettings>
    IDatabaseConnectionSettings
    IEquatable<PostgreSqlTableLockSettings>
    Inherited Members
    TableBasedDistributedLockSettings.Equals(DistributedLockSettings)
    TableBasedDistributedLockSettings.AcquireInterval
    TableBasedDistributedLockSettings.HeartbeatInterval
    TableBasedDistributedLockSettings.LockTimeout
    DistributedLockSettings.LockName
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Silverback.Lock
    Assembly: Silverback.Storage.PostgreSql.dll
    Syntax
    public record PostgreSqlTableLockSettings : TableBasedDistributedLockSettings, IValidatableSettings, IEquatable<DistributedLockSettings>, IEquatable<TableBasedDistributedLockSettings>, IDatabaseConnectionSettings, IEquatable<PostgreSqlTableLockSettings>

    Constructors

    PostgreSqlTableLockSettings(PostgreSqlTableLockSettings)

    The PostgreSqlTableLock settings.

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

    PostgreSqlTableLockSettings(string, string)

    Initializes a new instance of the PostgreSqlTableLockSettings class.

    Declaration
    public PostgreSqlTableLockSettings(string lockName, string connectionString)
    Parameters
    Type Name Description
    string lockName

    The name of the lock.

    string connectionString

    The connection string to the PostgreSql database.

    Properties

    ConnectionString

    Gets the connection string to the PostgreSql database.

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

    CreateTableTimeout

    Gets the timeout for the table creation. The default is 30 seconds.

    Declaration
    public TimeSpan CreateTableTimeout { get; init; }
    Property Value
    Type Description
    TimeSpan

    DbCommandTimeout

    Gets the database command timeout. The default is 10 seconds.

    Declaration
    public TimeSpan DbCommandTimeout { get; init; }
    Property Value
    Type Description
    TimeSpan

    EqualityContract

    The PostgreSqlTableLock settings.

    Declaration
    protected override Type EqualityContract { get; }
    Property Value
    Type Description
    Type
    Overrides
    TableBasedDistributedLockSettings.EqualityContract

    TableName

    Gets the name of the locks table. The default is "SilverbackLocks".

    Declaration
    public string TableName { get; init; }
    Property Value
    Type Description
    string

    Methods

    Equals(PostgreSqlTableLockSettings?)

    The PostgreSqlTableLock settings.

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

    Equals(TableBasedDistributedLockSettings?)

    The PostgreSqlTableLock settings.

    Declaration
    public override sealed bool Equals(TableBasedDistributedLockSettings? other)
    Parameters
    Type Name Description
    TableBasedDistributedLockSettings other
    Returns
    Type Description
    bool
    Overrides
    TableBasedDistributedLockSettings.Equals(TableBasedDistributedLockSettings?)

    Equals(object?)

    The PostgreSqlTableLock settings.

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

    GetHashCode()

    The PostgreSqlTableLock settings.

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

    PrintMembers(StringBuilder)

    The PostgreSqlTableLock settings.

    Declaration
    protected override bool PrintMembers(StringBuilder builder)
    Parameters
    Type Name Description
    StringBuilder builder
    Returns
    Type Description
    bool
    Overrides
    TableBasedDistributedLockSettings.PrintMembers(StringBuilder)

    ToString()

    The PostgreSqlTableLock settings.

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

    Validate()

    Throws a SilverbackConfigurationException if the configuration is not valid.

    Declaration
    public override void Validate()
    Overrides
    TableBasedDistributedLockSettings.Validate()

    Operators

    operator ==(PostgreSqlTableLockSettings?, PostgreSqlTableLockSettings?)

    The PostgreSqlTableLock settings.

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

    operator !=(PostgreSqlTableLockSettings?, PostgreSqlTableLockSettings?)

    The PostgreSqlTableLock settings.

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

    Implements

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