Show / Hide Table of Contents

    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 source

    InvokeAsync<THandler>(Func<THandler, Task>, IServiceProvider?, bool)

    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
    Func<THandler, Task> action

    The action to be executed for each handler.

    IServiceProvider scopedServiceProvider

    The scoped IServiceProvider. If not provided a new scope will be created.

    bool invokeDuringShutdown

    Specifies whether the callback must be called even if the application is shutting down.

    Returns
    Type Description
    Task

    A Task representing the asynchronous operation.

    Type Parameters
    Name Description
    THandler

    The type of the handler.

    | Improve this doc View source

    Invoke<THandler>(Action<THandler>, IServiceProvider?, bool)

    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
    Action<THandler> action

    The action to be executed for each handler.

    IServiceProvider scopedServiceProvider

    The scoped IServiceProvider. If not provided a new scope will be created.

    bool 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.

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini