Interface IBrokerCallbacksInvoker
Used to invoke the registered IBrokerCallback.
Namespace: Silverback.Messaging.Broker.Callbacks
Assembly: Silverback.Integration.dll
Syntax
public interface IBrokerCallbacksInvoker
Methods
| Improve this doc View sourceInvoke<THandler>(Action<THandler>, IServiceProvider, Boolean)
Resolves and invokes all handlers of the specified type.
Declaration
void Invoke<THandler>(Action<THandler> action, IServiceProvider scopedServiceProvider = null, bool invokeDuringShutdown = true)
Parameters
Type | Name | Description |
---|---|---|
System.Action<THandler> | action | The action to be executed for each handler. |
System.IServiceProvider | scopedServiceProvider | The scoped System.IServiceProvider. If not provided a new scope will be created. |
System.Boolean | invokeDuringShutdown | Specifies whether the callback must be called even if the application is shutting down. |
Type Parameters
Name | Description |
---|---|
THandler | The type of the handler. |
InvokeAsync<THandler>(Func<THandler, Task>, IServiceProvider, Boolean)
Resolves and invokes all handlers of the specified type.
Declaration
Task InvokeAsync<THandler>(Func<THandler, Task> action, IServiceProvider scopedServiceProvider = null, bool invokeDuringShutdown = true)
Parameters
Type | Name | Description |
---|---|---|
System.Func<THandler, System.Threading.Tasks.Task> | action | The action to be executed for each handler. |
System.IServiceProvider | scopedServiceProvider | The scoped System.IServiceProvider. If not provided a new scope will be created. |
System.Boolean | invokeDuringShutdown | Specifies whether the callback must be called even if the application is shutting down. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A System.Threading.Tasks.Task representing the asynchronous operation. |
Type Parameters
Name | Description |
---|---|
THandler | The type of the handler. |