Class PostgreSqlOutboxSettingsBuilder
- Namespace
- Silverback.Messaging.Configuration
- Assembly
- Silverback.Storage.PostgreSql.dll
Builds the PostgreSqlOutboxSettings.
public class PostgreSqlOutboxSettingsBuilder : IOutboxSettingsImplementationBuilder
- Inheritance
-
PostgreSqlOutboxSettingsBuilder
- Implements
- Inherited Members
Constructors
PostgreSqlOutboxSettingsBuilder(string)
Initializes a new instance of the PostgreSqlOutboxSettingsBuilder class.
public PostgreSqlOutboxSettingsBuilder(string connectionString)
Parameters
connectionStringstringThe connection string to the PostgreSql database.
Methods
Build()
Builds the settings instance.
public OutboxSettings Build()
Returns
UseTable(string)
Sets the table name.
public PostgreSqlOutboxSettingsBuilder UseTable(string tableName)
Parameters
tableNamestringThe name of the outbox table. If not specified, the default
"SilverbackOutbox"will be used.
Returns
- PostgreSqlOutboxSettingsBuilder
The PostgreSqlOutboxSettingsBuilder so that additional calls can be chained.
WithCreateTableTimeout(TimeSpan)
Sets the timeout for the table creation.
public PostgreSqlOutboxSettingsBuilder WithCreateTableTimeout(TimeSpan createTableTimeout)
Parameters
createTableTimeoutTimeSpanThe timeout for the table creation. The default is 30 seconds.
Returns
- PostgreSqlOutboxSettingsBuilder
The PostgreSqlOutboxSettingsBuilder so that additional calls can be chained.
WithDbCommandTimeout(TimeSpan)
Sets the database command timeout.
public PostgreSqlOutboxSettingsBuilder WithDbCommandTimeout(TimeSpan dbCommandTimeout)
Parameters
dbCommandTimeoutTimeSpanThe timeout for the database commands. The default is 10 seconds.
Returns
- PostgreSqlOutboxSettingsBuilder
The PostgreSqlOutboxSettingsBuilder so that additional calls can be chained.