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.Commands.ConcurrentAkkaCommandSender< TAuthenticationToken, TTarget > Class Template Reference
+ Inheritance diagram for Cqrs.Akka.Commands.ConcurrentAkkaCommandSender< TAuthenticationToken, TTarget >:

Public Member Functions

 ConcurrentAkkaCommandSender (IActorRef actorReference, ICommandReceiver< TAuthenticationToken > commandReceiver)
 
void Publish< TCommand > (TCommand command)
 
void Send< TCommand > (TCommand command)
 
void Publish< TCommand > (IEnumerable< TCommand > commands)
 
void Send< TCommand > (IEnumerable< TCommand > commands)
 
virtual TEvent SendAndWait< TCommand, TEvent > (TCommand command, IEventReceiver< TAuthenticationToken > eventReceiver=null)
 Sends the provided command and waits for an event of TEvent More...
 
TEvent SendAndWait< TCommand, TEvent > (TCommand command, int millisecondsTimeout, IEventReceiver< TAuthenticationToken > eventReceiver=null)
 Sends the provided command and waits for an event of TEvent or exits if the specified timeout is expired. More...
 
TEvent SendAndWait< TCommand, TEvent > (TCommand command, TimeSpan timeout, IEventReceiver< TAuthenticationToken > eventReceiver=null)
 Sends the provided command and waits for an event of TEvent or exits if the specified timeout is expired. More...
 
TEvent SendAndWait< TCommand, TEvent > (TCommand command, Func< IEnumerable< IEvent< TAuthenticationToken >>, TEvent > condition, IEventReceiver< TAuthenticationToken > eventReceiver=null)
 Sends the provided command and waits until the specified condition is satisfied an event of TEvent More...
 
TEvent SendAndWait< TCommand, TEvent > (TCommand command, Func< IEnumerable< IEvent< TAuthenticationToken >>, TEvent > condition, int millisecondsTimeout, IEventReceiver< TAuthenticationToken > eventReceiver=null)
 Sends the provided command and waits for an event of TEvent or exits if the specified timeout is expired. More...
 
TEvent SendAndWait< TCommand, TEvent > (TCommand command, Func< IEnumerable< IEvent< TAuthenticationToken >>, TEvent > condition, TimeSpan timeout, IEventReceiver< TAuthenticationToken > eventReceiver=null)
 Sends the provided command and waits for an event of TEvent or exits if the specified timeout is expired. More...
 

Properties

IActorRef ActorReference [get]
 
ICommandReceiver< TAuthenticationToken > CommandReceiver [get]