Class BrokerOptionsBuilderSqliteExtensions
Adds the Silverback.Storage.Sqlite specific methods to the BrokerOptionsBuilder.
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Storage.Sqlite.dll
Syntax
public static class BrokerOptionsBuilderSqliteExtensions
Methods
AddSqliteKafkaOffsetStore(BrokerOptionsBuilder)
Adds the SQLite offset store.
Declaration
public static BrokerOptionsBuilder AddSqliteKafkaOffsetStore(this BrokerOptionsBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| BrokerOptionsBuilder | builder | The BrokerOptionsBuilder that references the IServiceCollection to add the services to. |
Returns
| Type | Description |
|---|---|
| BrokerOptionsBuilder | The BrokerOptionsBuilder so that additional calls can be chained. |
AddSqliteOutbox(BrokerOptionsBuilder)
Adds the SQLite outbox.
Declaration
public static BrokerOptionsBuilder AddSqliteOutbox(this BrokerOptionsBuilder builder)
Parameters
| Type | Name | Description |
|---|---|---|
| BrokerOptionsBuilder | builder | The BrokerOptionsBuilder that references the IServiceCollection to add the services to. |
Returns
| Type | Description |
|---|---|
| BrokerOptionsBuilder | The BrokerOptionsBuilder so that additional calls can be chained. |
UseSqliteKafkaOffsetStore(BrokerOptionsBuilder, string)
Replaces all offset stores with the SQLite version, better suitable for testing.
Declaration
public static BrokerOptionsBuilder UseSqliteKafkaOffsetStore(this BrokerOptionsBuilder builder, string connectionString)
Parameters
| Type | Name | Description |
|---|---|---|
| BrokerOptionsBuilder | builder | The BrokerOptionsBuilder that references the IServiceCollection to add the services to. |
| string | connectionString | The connection string to the SQLite database. |
Returns
| Type | Description |
|---|---|
| BrokerOptionsBuilder | The BrokerOptionsBuilder so that additional calls can be chained. |
UseSqliteOutbox(BrokerOptionsBuilder, string)
Replaces all outboxes with the SQLite version, better suitable for testing.
Declaration
public static BrokerOptionsBuilder UseSqliteOutbox(this BrokerOptionsBuilder builder, string connectionString)
Parameters
| Type | Name | Description |
|---|---|---|
| BrokerOptionsBuilder | builder | The BrokerOptionsBuilder that references the IServiceCollection to add the services to. |
| string | connectionString | The connection string to the SQLite database. |
Returns
| Type | Description |
|---|---|
| BrokerOptionsBuilder | The BrokerOptionsBuilder so that additional calls can be chained. |