Class PostgreSqlOutboxSettings
- Namespace
- Silverback.Messaging.Producing.TransactionalOutbox
- Assembly
- Silverback.Storage.PostgreSql.dll
The PostgreSqlOutboxWriter and PostgreSqlOutboxReader settings.
public record PostgreSqlOutboxSettings : OutboxSettings, IValidatableSettings, IEquatable<OutboxSettings>, IDatabaseConnectionSettings, IEquatable<PostgreSqlOutboxSettings>
- Inheritance
-
PostgreSqlOutboxSettings
- Implements
- Inherited Members
Constructors
PostgreSqlOutboxSettings(PostgreSqlOutboxSettings)
protected PostgreSqlOutboxSettings(PostgreSqlOutboxSettings original)
Parameters
originalPostgreSqlOutboxSettings
PostgreSqlOutboxSettings(string)
Initializes a new instance of the PostgreSqlOutboxSettings class.
public PostgreSqlOutboxSettings(string connectionString)
Parameters
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 outbox table. The default is "SilverbackOutbox".
public string TableName { get; init; }
Property Value
Methods
Equals(OutboxSettings?)
public override sealed bool Equals(OutboxSettings? other)
Parameters
otherOutboxSettings
Returns
Equals(PostgreSqlOutboxSettings?)
public virtual bool Equals(PostgreSqlOutboxSettings? other)
Parameters
otherPostgreSqlOutboxSettings
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetCompatibleLockSettings()
Returns an instance of PostgreSqlAdvisoryLockSettings.
public override DistributedLockSettings GetCompatibleLockSettings()
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 ==(PostgreSqlOutboxSettings?, PostgreSqlOutboxSettings?)
public static bool operator ==(PostgreSqlOutboxSettings? left, PostgreSqlOutboxSettings? right)
Parameters
leftPostgreSqlOutboxSettingsrightPostgreSqlOutboxSettings
Returns
operator !=(PostgreSqlOutboxSettings?, PostgreSqlOutboxSettings?)
public static bool operator !=(PostgreSqlOutboxSettings? left, PostgreSqlOutboxSettings? right)
Parameters
leftPostgreSqlOutboxSettingsrightPostgreSqlOutboxSettings