Table of Contents

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

original PostgreSqlAdvisoryLockSettings

PostgreSqlAdvisoryLockSettings(string, string)

Initializes a new instance of the PostgreSqlAdvisoryLockSettings class.

public PostgreSqlAdvisoryLockSettings(string lockName, string connectionString)

Parameters

lockName string

The name of the lock.

connectionString string

The connection string to the PostgreSql database.

Properties

ConnectionString

Gets the connection string to the PostgreSql database.

public string ConnectionString { get; }

Property Value

string

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Equals(DistributedLockSettings?)

public override sealed bool Equals(DistributedLockSettings? other)

Parameters

other DistributedLockSettings

Returns

bool

Equals(PostgreSqlAdvisoryLockSettings?)

public virtual bool Equals(PostgreSqlAdvisoryLockSettings? other)

Parameters

other PostgreSqlAdvisoryLockSettings

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

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

left PostgreSqlAdvisoryLockSettings
right PostgreSqlAdvisoryLockSettings

Returns

bool

operator !=(PostgreSqlAdvisoryLockSettings?, PostgreSqlAdvisoryLockSettings?)

public static bool operator !=(PostgreSqlAdvisoryLockSettings? left, PostgreSqlAdvisoryLockSettings? right)

Parameters

left PostgreSqlAdvisoryLockSettings
right PostgreSqlAdvisoryLockSettings

Returns

bool