A ICommandPublisher<TAuthenticationToken> that resolves handlers , executes the handler and then publishes the ICommand<TAuthenticationToken> on the public command bus.
More...
|
| AkkaCommandBus (IBusHelper busHelper, IAuthenticationTokenHelper< TAuthenticationToken > authenticationTokenHelper, ICorrelationIdHelper correlationIdHelper, IDependencyResolver dependencyResolver, ILogger logger, ICommandPublisher< TAuthenticationToken > commandPublisher, ICommandReceiver< TAuthenticationToken > commandReceiver) |
| Instantiates a new instance of AkkaCommandBus<TAuthenticationToken> More...
|
|
virtual void | Publish< TCommand > (TCommand command) |
| Publishes the provided command on the command bus. More...
|
|
virtual void | Publish< TCommand > (IEnumerable< TCommand > commands) |
| Publishes the provided commands on the command bus. More...
|
|
virtual TEvent | PublishAndWait< TCommand, TEvent > (TCommand command, IEventReceiver< TAuthenticationToken > eventReceiver=null) |
| Publishes the provided command and waits for an event of TEvent More...
|
|
virtual TEvent | PublishAndWait< TCommand, TEvent > (TCommand command, int millisecondsTimeout, IEventReceiver< TAuthenticationToken > eventReceiver=null) |
| Publishes the provided command and waits for an event of TEvent or exits if the specified timeout is expired. More...
|
|
virtual TEvent | PublishAndWait< TCommand, TEvent > (TCommand command, TimeSpan timeout, IEventReceiver< TAuthenticationToken > eventReceiver=null) |
| Publishes the provided command and waits for an event of TEvent or exits if the specified timeout is expired. More...
|
|
virtual TEvent | PublishAndWait< TCommand, TEvent > (TCommand command, Func< IEnumerable< IEvent< TAuthenticationToken >>, TEvent > condition, IEventReceiver< TAuthenticationToken > eventReceiver=null) |
| Publishes the provided command and waits until the specified condition is satisfied an event of TEvent More...
|
|
virtual TEvent | PublishAndWait< TCommand, TEvent > (TCommand command, Func< IEnumerable< IEvent< TAuthenticationToken >>, TEvent > condition, int millisecondsTimeout, IEventReceiver< TAuthenticationToken > eventReceiver=null) |
| Publishes the provided command and waits for an event of TEvent or exits if the specified timeout is expired. More...
|
|
virtual TEvent | PublishAndWait< TCommand, TEvent > (TCommand command, Func< IEnumerable< IEvent< TAuthenticationToken >>, TEvent > condition, TimeSpan timeout, IEventReceiver< TAuthenticationToken > eventReceiver=null) |
| Publishes the provided command and waits for an event of TEvent or exits if the specified timeout is expired. More...
|
|
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...
|
|
A ICommandPublisher<TAuthenticationToken> that resolves handlers , executes the handler and then publishes the ICommand<TAuthenticationToken> on the public command bus.
- Template Parameters
-
TAuthenticationToken | The Type of the authentication token. |