RegisterAsync Method
Definition
- Assemblies
- Savvyio.Core.dll
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.