Class RequestReplyRegistryExtensions
Extension methods for the IRequestReplyRegistry<TRequest> interface.
public static class RequestReplyRegistryExtensions
- Inheritance
-
objectRequestReplyRegistryExtensions
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
registryIRequestReplyRegistry<TRequest>The IRequestReplyRegistry<TRequest> to extend.
handlerFunc<TRequest, Task<TResponse>>The function delegate that handles
TRequest.
Type Parameters
TRequestThe type of the model to store in the registry.
TResponseThe type of the response to return.