Class SilverbackBuilderWithConnectionToExtensions
Adds the WithConnectionToMessageBroker
method to the ISilverbackBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.dll
Syntax
public static class SilverbackBuilderWithConnectionToExtensions
Methods
| Improve this doc View sourceWithConnectionToMessageBroker(ISilverbackBuilder, Action<IBrokerOptionsBuilder>?)
Registers the types needed to connect with a message broker.
Declaration
public static ISilverbackBuilder WithConnectionToMessageBroker(this ISilverbackBuilder silverbackBuilder, Action<IBrokerOptionsBuilder>? optionsAction = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Action<IBrokerOptionsBuilder> | optionsAction | Additional options such as the actual message brokers to be used. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |