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.

◆ RegisterHandler< TMessage >() [1/2]

void Cqrs.Akka.Events.AkkaEventBus< TAuthenticationToken >.RegisterHandler< TMessage > ( Action< TMessage >  handler,
Type  targetedType,
bool  holdMessageLock = true 
)

Register an event or command handler that will listen and respond to events or commands.

In many cases the targetedType will be the event handler class itself, what you actually want is the target of what is being updated

Implements Cqrs.Bus.IHandlerRegistrar.

Type Constraints
TMessage :IMessage