Table of Contents

RegisterAsync Method

Definition

Namespace
Savvyio.Handlers
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/Handlers/IRequestReplyRegistry.cs

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

Registers the specified function delegate handler.

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

Parameters

handler Func<T, CancellationToken, Task<TResponse>>

The function delegate that handles T.

Type Parameters

T

The type that implements TRequest.

TResponse

The type of the response to return.