Class SilverbackBuilderAddDelegateSubscriberExtensions
Adds the AddDelegateSubscriber
methods to the ISilverbackBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Core.dll
Syntax
public static class SilverbackBuilderAddDelegateSubscriberExtensions
Methods
| Improve this doc View sourceAddDelegateSubscriber(ISilverbackBuilder, Delegate, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber(this ISilverbackBuilder silverbackBuilder, Delegate handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Delegate | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Action<IEnumerable<TMessage>, IServiceProvider>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Action<IEnumerable<TMessage>, IServiceProvider> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Action<IEnumerable<TMessage>, IServiceProvider> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Action<IEnumerable<TMessage>>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Action<IEnumerable<TMessage>> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Action<IEnumerable<TMessage>> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Action<TMessage, IServiceProvider>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Action<TMessage, IServiceProvider> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Action<TMessage, IServiceProvider> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Action<TMessage>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Action<TMessage> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Action<TMessage> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Func<IEnumerable<TMessage>, IServiceProvider, object>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Func<IEnumerable<TMessage>, IServiceProvider, object> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Func<IEnumerable<TMessage>, IServiceProvider, object> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Func<IEnumerable<TMessage>, object>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Func<IEnumerable<TMessage>, object> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Func<IEnumerable<TMessage>, object> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Func<IEnumerable<TMessage>, Task<object>>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Func<IEnumerable<TMessage>, Task<object>> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Func<IEnumerable<TMessage>, Task<object>> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Func<IEnumerable<TMessage>, Task>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Func<IEnumerable<TMessage>, Task> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Func<IEnumerable<TMessage>, Task> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Func<TMessage, IServiceProvider, object>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Func<TMessage, IServiceProvider, object> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Func<TMessage, IServiceProvider, object> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Func<TMessage, IServiceProvider, Task>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Func<TMessage, IServiceProvider, Task> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Func<TMessage, IServiceProvider, Task> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Func<TMessage, object>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Func<TMessage, object> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Func<TMessage, object> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Func<TMessage, Task<object>>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Func<TMessage, Task<object>> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Func<TMessage, Task<object>> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |
AddDelegateSubscriber<TMessage>(ISilverbackBuilder, Func<TMessage, Task>, SubscriptionOptions?)
Subscribes the specified delegate to the messages being published into the bus.
Declaration
public static ISilverbackBuilder AddDelegateSubscriber<TMessage>(this ISilverbackBuilder silverbackBuilder, Func<TMessage, Task> handler, SubscriptionOptions? options = null)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the IBusOptions to be configured. |
Func<TMessage, Task> | handler | The message handler delegate. |
SubscriptionOptions | options | The SubscriptionOptions. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |
Type Parameters
Name | Description |
---|---|
TMessage | The type of the messages to be handled. |