CQRS.NET  4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless 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