Dispatch Method
Definition
- Namespace
- Savvyio.Dispatchers
- Assemblies
- Savvyio.Core.dll
Dispatch<TRequest, THandler>(TRequest, Func<THandler, IFireForgetActivator<TRequest>>)
Dispatches the specified request using Fire-and-Forget/In-Only MEP.
protected virtual void Dispatch<TRequest, THandler>(TRequest request, Func<THandler, IFireForgetActivator<TRequest>> handlerFactory) where TRequest : IRequest where THandler : IHandler<TRequest>
Parameters
requestTRequestThe model that is being handled by a registered delegate.
handlerFactoryFunc<THandler, IFireForgetActivator<TRequest>>The function delegate that will locate and invoke the handler registered to the specified
request.
Type Parameters
TRequestThe type of the input model registered to a handler.
THandlerThe type of the handler to locate the input model.
Remarks
A request can be a command, domain event, integration event, query etc.