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