Class BrokerOptionsBuilderAddBrokerExtensions
Adds the AddBroker
method to the IBrokerOptionsBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.dll
Syntax
public static class BrokerOptionsBuilderAddBrokerExtensions
Methods
| Improve this doc View sourceAddBroker<TBroker>(IBrokerOptionsBuilder)
Adds the specified IBroker implementation to allow producing and consuming messages.
Declaration
public static IBrokerOptionsBuilder AddBroker<TBroker>(this IBrokerOptionsBuilder brokerOptionsBuilder) where TBroker : class, IBroker
Parameters
Type | Name | Description |
---|---|---|
IBrokerOptionsBuilder | brokerOptionsBuilder | The IBrokerOptionsBuilder that references the IServiceCollection to add the services to. |
Returns
Type | Description |
---|---|
IBrokerOptionsBuilder | The IBrokerOptionsBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TBroker | The type of the IBroker implementation to add. |