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