Table of Contents

Interface IFireForgetRegistry<TRequest>

Namespace
Savvyio.Handlers
Assembly
Savvyio.Core.dll

Specifies a Fire-and-Forget/In-Only MEP registry that store delegates responsible of handling type TRequest.

public interface IFireForgetRegistry<in TRequest>

Type Parameters

TRequest

The type of the model to store in the registry.

Methods

Register<T>(Action<T>)

Registers the specified delegate handler.

void Register<T>(Action<T> handler)
    where T : class, TRequest

Parameters

handler Action<T>

The delegate that handles T.

Type Parameters

T

The type that implements TRequest.

RegisterAsync<T>(Func<T, CancellationToken, Task>)

Registers the specified function delegate handler.

void RegisterAsync<T>(Func<T, CancellationToken, Task> handler)
    where T : class, TRequest

Parameters

handler Func<T, CancellationToken, Task>

The function delegate that handles T.

Type Parameters

T

The type that implements TRequest.

See Also