Table of Contents

Register Method

Definition

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

Register<T, TResponse>(Func<T, TResponse>)

Registers the specified function delegate handler.

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

Parameters

handler Func<T, TResponse>

The function delegate that handles T.

Type Parameters

T

The type that implements TRequest.

TResponse

The type of the response to return.