CQRS.NET  2.2
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ InvokeHandler()

virtual void Cqrs.Configuration.BusRegistrar.InvokeHandler ( Type @  interface,
bool  trueForEventsFalseForCommands,
Func< Type, IEnumerable< Type >>  resolveMessageHandlerInterface,
Type  executorType 
)
protectedvirtual

Extract the IHandlerRegistrar.RegisterHandler<TMessage>(System.Action<TMessage>,System.Type,bool) method of GetEventHandlerRegistrar or GetCommandHandlerRegistrar. Create an Action around the provided executorType Then register the created Action using the extracted IHandlerRegistrar.RegisterHandler<TMessage>(System.Action<TMessage>,System.Type,bool) method

Parameters
interfaceThe Type of IHandler
trueForEventsFalseForCommandsIndicates if this is registers IEventHandler or ICommandHandler<TAuthenticationToken,TCommand>.
resolveMessageHandlerInterfaceResolveEventHandlerInterface or ResolveCommandHandlerInterface
executorTypeThe Type of the event handler that will do the handling