Class SilverbackBuilderAddOutboundRouterExtensions
Adds the AddSingletonOutboundRouter
method to the ISilverbackBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.dll
Syntax
public static class SilverbackBuilderAddOutboundRouterExtensions
Methods
| Improve this doc View sourceAddScopedOutboundRouter(ISilverbackBuilder, Func<IServiceProvider, IOutboundRouter>)
Adds a scoped outbound router with a factory specified in
implementationFactory
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddScopedOutboundRouter(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, IOutboundRouter> implementationFactory)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Func<IServiceProvider, IOutboundRouter> | implementationFactory | The factory that creates the service. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddScopedOutboundRouter(ISilverbackBuilder, Type)
Adds a scoped outbound router of the type specified in routerType
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddScopedOutboundRouter(this ISilverbackBuilder silverbackBuilder, Type routerType)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Type | routerType | The type of the outbound router to register and the implementation to use. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddScopedOutboundRouter<TRouter>(ISilverbackBuilder)
Adds a scoped outbound router of the type specified in TRouter
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddScopedOutboundRouter<TRouter>(this ISilverbackBuilder silverbackBuilder) where TRouter : class, IOutboundRouter
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TRouter | The type of the outbound router to add. |
AddSingletonOutboundRouter(ISilverbackBuilder, IOutboundRouter)
Adds a singleton outbound router with an instance specified in
implementationInstance
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonOutboundRouter(this ISilverbackBuilder silverbackBuilder, IOutboundRouter implementationInstance)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
IOutboundRouter | implementationInstance | The instance of the service. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonOutboundRouter(ISilverbackBuilder, Func<IServiceProvider, IOutboundRouter>)
Adds a singleton outbound router with a factory specified in
implementationFactory
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonOutboundRouter(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, IOutboundRouter> implementationFactory)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Func<IServiceProvider, IOutboundRouter> | implementationFactory | The factory that creates the service. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonOutboundRouter(ISilverbackBuilder, Type)
Adds a singleton outbound router of the type specified in routerType
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonOutboundRouter(this ISilverbackBuilder silverbackBuilder, Type routerType)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Type | routerType | The type of the outbound router to register and the implementation to use. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonOutboundRouter<TRouter>(ISilverbackBuilder)
Adds a singleton outbound router of the type specified in TRouter
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonOutboundRouter<TRouter>(this ISilverbackBuilder silverbackBuilder) where TRouter : class, IOutboundRouter
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TRouter | The type of the outbound router to add. |
AddTransientOutboundRouter(ISilverbackBuilder, Func<IServiceProvider, IOutboundRouter>)
Adds a transient outbound router with a factory specified in
implementationFactory
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientOutboundRouter(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, IOutboundRouter> implementationFactory)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Func<IServiceProvider, IOutboundRouter> | implementationFactory | The factory that creates the service. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddTransientOutboundRouter(ISilverbackBuilder, Type)
Adds a transient outbound router of the type specified in routerType
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientOutboundRouter(this ISilverbackBuilder silverbackBuilder, Type routerType)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Type | routerType | The type of the outbound router to register and the implementation to use. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddTransientOutboundRouter<TRouter>(ISilverbackBuilder)
Adds a transient outbound router of the type specified in TRouter
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientOutboundRouter<TRouter>(this ISilverbackBuilder silverbackBuilder) where TRouter : class, IOutboundRouter
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the services to. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TRouter | The type of the outbound router to add. |