CQRS.NET  2.1
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> method from the provided bus Create an Action around the provided executorType Then register the created Action using the extracted IHandlerRegistrar.RegisterHandler<TMessage> method

Parameters
executorTypeThe Type of the event handler that will do the handling