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