Class PostgreSqlTableLockSettings
- Namespace
- Silverback.Lock
- Assembly
- Silverback.Storage.PostgreSql.dll
The PostgreSqlTableLock settings.
public record PostgreSqlTableLockSettings : TableBasedDistributedLockSettings, IValidatableSettings, IEquatable<DistributedLockSettings>, IEquatable<TableBasedDistributedLockSettings>, IDatabaseConnectionSettings, IEquatable<PostgreSqlTableLockSettings>
- Inheritance
-
PostgreSqlTableLockSettings
- Implements
- Inherited Members
Constructors
PostgreSqlTableLockSettings(PostgreSqlTableLockSettings)
protected PostgreSqlTableLockSettings(PostgreSqlTableLockSettings original)
Parameters
originalPostgreSqlTableLockSettings
PostgreSqlTableLockSettings(string, string)
Initializes a new instance of the PostgreSqlTableLockSettings class.
public PostgreSqlTableLockSettings(string lockName, string connectionString)
Parameters
lockNamestringThe name of the lock.
connectionStringstringThe connection string to the PostgreSql database.
Properties
ConnectionString
Gets the connection string to the PostgreSql database.
public string ConnectionString { get; }
Property Value
CreateTableTimeout
Gets the timeout for the table creation. The default is 30 seconds.
public TimeSpan CreateTableTimeout { get; init; }
Property Value
DbCommandTimeout
Gets the database command timeout. The default is 10 seconds.
public TimeSpan DbCommandTimeout { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
TableName
Gets the name of the locks table. The default is "SilverbackLocks".
public string TableName { get; init; }
Property Value
Methods
Equals(PostgreSqlTableLockSettings?)
public virtual bool Equals(PostgreSqlTableLockSettings? other)
Parameters
Returns
Equals(TableBasedDistributedLockSettings?)
public override sealed bool Equals(TableBasedDistributedLockSettings? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Validate()
Throws a SilverbackConfigurationException if the configuration is not valid.
public override void Validate()
Operators
operator ==(PostgreSqlTableLockSettings?, PostgreSqlTableLockSettings?)
public static bool operator ==(PostgreSqlTableLockSettings? left, PostgreSqlTableLockSettings? right)
Parameters
Returns
operator !=(PostgreSqlTableLockSettings?, PostgreSqlTableLockSettings?)
public static bool operator !=(PostgreSqlTableLockSettings? left, PostgreSqlTableLockSettings? right)