Table of Contents

Class PostgreSqlOutboxSettings

Namespace
Silverback.Messaging.Producing.TransactionalOutbox
Assembly
Silverback.Storage.PostgreSql.dll
public record PostgreSqlOutboxSettings : OutboxSettings, IValidatableSettings, IEquatable<OutboxSettings>, IDatabaseConnectionSettings, IEquatable<PostgreSqlOutboxSettings>
Inheritance
PostgreSqlOutboxSettings
Implements
Inherited Members

Constructors

PostgreSqlOutboxSettings(PostgreSqlOutboxSettings)

protected PostgreSqlOutboxSettings(PostgreSqlOutboxSettings original)

Parameters

original PostgreSqlOutboxSettings

PostgreSqlOutboxSettings(string)

Initializes a new instance of the PostgreSqlOutboxSettings class.

public PostgreSqlOutboxSettings(string connectionString)

Parameters

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

CreateTableTimeout

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

public TimeSpan CreateTableTimeout { get; init; }

Property Value

TimeSpan

DbCommandTimeout

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

public TimeSpan DbCommandTimeout { get; init; }

Property Value

TimeSpan

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

TableName

Gets the name of the outbox table. The default is "SilverbackOutbox".

public string TableName { get; init; }

Property Value

string

Methods

Equals(OutboxSettings?)

public override sealed bool Equals(OutboxSettings? other)

Parameters

other OutboxSettings

Returns

bool

Equals(PostgreSqlOutboxSettings?)

public virtual bool Equals(PostgreSqlOutboxSettings? other)

Parameters

other PostgreSqlOutboxSettings

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetCompatibleLockSettings()

Returns an instance of PostgreSqlAdvisoryLockSettings.

public override DistributedLockSettings GetCompatibleLockSettings()

Returns

DistributedLockSettings

The PostgreSqlAdvisoryLockSettings.

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 ==(PostgreSqlOutboxSettings?, PostgreSqlOutboxSettings?)

public static bool operator ==(PostgreSqlOutboxSettings? left, PostgreSqlOutboxSettings? right)

Parameters

left PostgreSqlOutboxSettings
right PostgreSqlOutboxSettings

Returns

bool

operator !=(PostgreSqlOutboxSettings?, PostgreSqlOutboxSettings?)

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

Parameters

left PostgreSqlOutboxSettings
right PostgreSqlOutboxSettings

Returns

bool