Class BrokerOptionsBuilderMemoryExtensions
Adds the Silverback.Storage.Memory specific methods to the BrokerOptionsBuilder.
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Storage.Memory.dll
Syntax
public static class BrokerOptionsBuilderMemoryExtensions
Methods
AddInMemoryKafkaOffsetStore(BrokerOptionsBuilder)
Adds the in-memory offset store.
Declaration
public static BrokerOptionsBuilder AddInMemoryKafkaOffsetStore(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. |
AddInMemoryOutbox(BrokerOptionsBuilder)
Adds the in-memory outbox.
Declaration
public static BrokerOptionsBuilder AddInMemoryOutbox(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. |
UseInMemoryKafkaOffsetStore(BrokerOptionsBuilder)
Replaces all offset stores with the in-memory version, better suitable for testing.
Declaration
public static BrokerOptionsBuilder UseInMemoryKafkaOffsetStore(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. |
UseInMemoryOutbox(BrokerOptionsBuilder)
Replaces all outboxes with the in-memory version, better suitable for testing.
Declaration
public static BrokerOptionsBuilder UseInMemoryOutbox(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. |