Show / Hide Table of Contents

    Interface IBrokerClientCallbacksInvoker

    Used to invoke the registered IBrokerClientCallback.

    Namespace: Silverback.Messaging.Broker.Callbacks
    Assembly: Silverback.Integration.dll
    Syntax
    public interface IBrokerClientCallbacksInvoker

    Methods

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

    Resolves and invokes all handlers of the specified type.

    Declaration
    ValueTask 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
    ValueTask

    A Task representing the asynchronous operation.

    Type Parameters
    Name Description
    THandler

    The type of the handler.

    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.

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini