Table of Contents

Interface IRequestReplyRegistry<TRequest>

Namespace
Savvyio.Handlers
Assembly
Savvyio.Core.dll

Specifies a Request-Reply/In-Out MEP registry that store delegates responsible of handling type TRequest.

public interface IRequestReplyRegistry<in TRequest>

Type Parameters

TRequest

The type of the model to store in the registry.

Methods

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.

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.

See Also