Table of Contents

Class RequestReplyRegistryExtensions

Namespace
Savvyio.Handlers
Assembly
Savvyio.Core.dll

Extension methods for the IRequestReplyRegistry<TRequest> interface.

public static class RequestReplyRegistryExtensions
Inheritance
Object
RequestReplyRegistryExtensions

Methods

RegisterAsync<TRequest, TResponse>(IRequestReplyRegistry<TRequest>, Func<TRequest, Task<TResponse>>)

Registers the asynchronous.

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

Parameters

registry IRequestReplyRegistry<TRequest>

The IRequestReplyRegistry<TRequest> to extend.

handler Func<TRequest, Task<TResponse>>

The function delegate that handles TRequest.

Type Parameters

TRequest

The type of the model to store in the registry.

TResponse

The type of the response to return.