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
-
interface | The Type of IHandler |
trueForEventsFalseForCommands | Indicates if this is registers IEventHandler or ICommandHandler<TAuthenticationToken,TCommand>. |
resolveMessageHandlerInterface | ResolveEventHandlerInterface or ResolveCommandHandlerInterface |
executorType | The Type of the event handler that will do the handling |