Interface IRequestReplyRegistry<TRequest>
Specifies a Request-Reply/In-Out MEP registry that store delegates responsible for handling type TRequest.
public interface IRequestReplyRegistry<in TRequest>
Type Parameters
TRequestThe type of the model to store in the registry.
Methods
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
handlerFunc<T, CancellationToken, Task<TResponse>>The function delegate that handles
T.
Type Parameters
TThe type that implements
TRequest.TResponseThe type of the response to return.
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
handlerFunc<T, TResponse>The function delegate that handles
T.
Type Parameters
TThe type that implements
TRequest.TResponseThe type of the response to return.
See Also
IRequestReplyActivator<TRequest>