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.
Cqrs.Akka.Events.AkkaEventBus< TAuthenticationToken > Class Template Reference

An IEventPublisher<TAuthenticationToken> that proxies IEvent<TAuthenticationToken> back onto the IActorRef and then publishes the IEvent<TAuthenticationToken> on the public event bus. More...

+ Inheritance diagram for Cqrs.Akka.Events.AkkaEventBus< TAuthenticationToken >:

Public Member Functions

 AkkaEventBus (IBusHelper busHelper, IAuthenticationTokenHelper< TAuthenticationToken > authenticationTokenHelper, ICorrelationIdHelper correlationIdHelper, ILogger logger, IEventPublisher< TAuthenticationToken > eventPublisher, IEventReceiver< TAuthenticationToken > eventReceiver)
 
void Publish< TEvent > (TEvent @event)
 Publishes the provided @event on the event bus. More...
 
virtual void Publish< TEvent > (IEnumerable< TEvent > events)
 Publishes the provided events on the event bus. More...
 
virtual void PrepareEvent< TEvent > (TEvent @event, string framework)
 
virtual bool PrepareAndValidateEvent< TEvent > (TEvent @event, string framework, out IEnumerable< RouteHandlerDelegate > handlers)
 
void 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. More...
 
void RegisterHandler< TMessage > (Action< TMessage > handler, bool holdMessageLock=true)
 Register an event or command handler that will listen and respond to events or commands. More...
 

Properties

static RouteManager Routes [get]
 
IEventPublisher< TAuthenticationToken > EventPublisher [get]
 
IEventReceiver< TAuthenticationToken > EventReceiver [get]
 
IAuthenticationTokenHelper< TAuthenticationToken > AuthenticationTokenHelper [get]
 
ICorrelationIdHelper CorrelationIdHelper [get]
 
IBusHelper BusHelper [get]
 
ILogger Logger [get]
 

Detailed Description

An IEventPublisher<TAuthenticationToken> that proxies IEvent<TAuthenticationToken> back onto the IActorRef and then publishes the IEvent<TAuthenticationToken> on the public event bus.