Class PostgreSqlAdvisoryLockSettings
- Namespace
- Silverback.Lock
- Assembly
- Silverback.Storage.PostgreSql.dll
The PostgreSqlAdvisoryLock settings.
public record PostgreSqlAdvisoryLockSettings : DistributedLockSettings, IValidatableSettings, IEquatable<DistributedLockSettings>, IEquatable<PostgreSqlAdvisoryLockSettings>
- Inheritance
-
PostgreSqlAdvisoryLockSettings
- Implements
- Inherited Members
Constructors
PostgreSqlAdvisoryLockSettings(PostgreSqlAdvisoryLockSettings)
protected PostgreSqlAdvisoryLockSettings(PostgreSqlAdvisoryLockSettings original)
Parameters
originalPostgreSqlAdvisoryLockSettings
PostgreSqlAdvisoryLockSettings(string, string)
Initializes a new instance of the PostgreSqlAdvisoryLockSettings class.
public PostgreSqlAdvisoryLockSettings(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
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Equals(DistributedLockSettings?)
public override sealed bool Equals(DistributedLockSettings? other)
Parameters
otherDistributedLockSettings
Returns
Equals(PostgreSqlAdvisoryLockSettings?)
public virtual bool Equals(PostgreSqlAdvisoryLockSettings? 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 ==(PostgreSqlAdvisoryLockSettings?, PostgreSqlAdvisoryLockSettings?)
public static bool operator ==(PostgreSqlAdvisoryLockSettings? left, PostgreSqlAdvisoryLockSettings? right)
Parameters
Returns
operator !=(PostgreSqlAdvisoryLockSettings?, PostgreSqlAdvisoryLockSettings?)
public static bool operator !=(PostgreSqlAdvisoryLockSettings? left, PostgreSqlAdvisoryLockSettings? right)