Table of Contents

Class FireForgetRegistryExtensions

Namespace
Savvyio.Handlers
Assembly
Savvyio.Core.dll

Extension methods for the IFireForgetRegistry<TRequest> interface.

public static class FireForgetRegistryExtensions
Inheritance
Object
FireForgetRegistryExtensions

Methods

RegisterAsync<TRequest>(IFireForgetRegistry<TRequest>, Func<TRequest, Task>)

Registers the specified function delegate handler.

public static void RegisterAsync<TRequest>(this IFireForgetRegistry<TRequest> registry, Func<TRequest, Task> handler)
    where TRequest : class

Parameters

registry IFireForgetRegistry<TRequest>

The IFireForgetRegistry<TRequest> to extend.

handler Func<TRequest, Task>

The function delegate that handles TRequest.

Type Parameters

TRequest

The type of the model to store in the registry.