Class SilverbackBuilderAddBrokerCallbackHandlerExtensions
Adds the AddBrokerCallbackHandler
methods to the ISilverbackBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.dll
Syntax
public static class SilverbackBuilderAddBrokerCallbackHandlerExtensions
Methods
| Improve this doc View sourceAddScopedBrokerCallbackHandler(ISilverbackBuilder, Func<IServiceProvider, IBrokerCallback>)
Adds a scoped callback with a factory specified in implementationFactory
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddScopedBrokerCallbackHandler(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, IBrokerCallback> implementationFactory)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the handler to. |
Func<IServiceProvider, IBrokerCallback> | implementationFactory | The factory that creates the service. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddScopedBrokerCallbackHandler(ISilverbackBuilder, Type)
Adds a scoped callback of the type specified in handlerType
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddScopedBrokerCallbackHandler(this ISilverbackBuilder silverbackBuilder, Type handlerType)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the handler to. |
Type | handlerType | The type of the handler to register and the implementation to use. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddScopedBrokerCallbackHandler<THandler>(ISilverbackBuilder)
Adds a scoped callback of the type specified in THandler
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddScopedBrokerCallbackHandler<THandler>(this ISilverbackBuilder silverbackBuilder) where THandler : class, IBrokerCallback
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the handler to. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
THandler | The type of the handler to add. |
AddSingletonBrokerCallbackHandler(ISilverbackBuilder, IBrokerCallback)
Adds a singleton callback with an instance specified in implementationInstance
to the IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonBrokerCallbackHandler(this ISilverbackBuilder silverbackBuilder, IBrokerCallback implementationInstance)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the handler to. |
IBrokerCallback | implementationInstance | The instance of the service. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonBrokerCallbackHandler(ISilverbackBuilder, Func<IServiceProvider, IBrokerCallback>)
Adds a singleton callback with a factory specified in implementationFactory
to
the IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonBrokerCallbackHandler(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, IBrokerCallback> implementationFactory)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the handler to. |
Func<IServiceProvider, IBrokerCallback> | implementationFactory | The factory that creates the service. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonBrokerCallbackHandler(ISilverbackBuilder, Type)
Adds a singleton callback of the type specified in handlerType
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonBrokerCallbackHandler(this ISilverbackBuilder silverbackBuilder, Type handlerType)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the handler to. |
Type | handlerType | The type of the handler to register and the implementation to use. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddSingletonBrokerCallbackHandler<THandler>(ISilverbackBuilder)
Adds a singleton callback of the type specified in THandler
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddSingletonBrokerCallbackHandler<THandler>(this ISilverbackBuilder silverbackBuilder) where THandler : class, IBrokerCallback
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the handler to. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
THandler | The type of the handler to add. |
AddTransientBrokerCallbackHandler(ISilverbackBuilder, Func<IServiceProvider, IBrokerCallback>)
Adds a transient callback with a factory specified in implementationFactory
to
the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientBrokerCallbackHandler(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, IBrokerCallback> implementationFactory)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the handler to. |
Func<IServiceProvider, IBrokerCallback> | implementationFactory | The factory that creates the service. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddTransientBrokerCallbackHandler(ISilverbackBuilder, Type)
Adds a transient callback of the type specified in handlerType
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientBrokerCallbackHandler(this ISilverbackBuilder silverbackBuilder, Type handlerType)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the handler to. |
Type | handlerType | The type of the handler to register and the implementation to use. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddTransientBrokerCallbackHandler<THandler>(ISilverbackBuilder)
Adds a transient callback of the type specified in THandler
to the
IServiceCollection.
Declaration
public static ISilverbackBuilder AddTransientBrokerCallbackHandler<THandler>(this ISilverbackBuilder silverbackBuilder) where THandler : class, IBrokerCallback
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IServiceCollection to add the handler to. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
THandler | The type of the handler to add. |