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.

◆ Register() [2/3]

virtual void Cqrs.Configuration.BusRegistrar.Register ( bool  trueForEventsFalseForCommands,
Func< Type, IEnumerable< Type >>  resolveMessageHandlerInterface,
bool  skipCommandHandlers,
params Type []  typesFromAssemblyContainingMessages 
)
virtual

Registers all IHandler instances found in the Assembly for each Type in typesFromAssemblyContainingMessages .

Parameters
trueForEventsFalseForCommandsIndicates if this is registers IEventHandler or ICommandHandler<TAuthenticationToken,TCommand>.
resolveMessageHandlerInterfaceResolveEventHandlerInterface or ResolveCommandHandlerInterface
skipCommandHandlersIndicates if registering of ICommandHandler<TAuthenticationToken,TCommand> is enabled.
typesFromAssemblyContainingMessagesA collection of Type to track back to their containing Assembly and scan.