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.

◆ SendAndWait< TCommand, TEvent >() [2/6]

TEvent Cqrs.Akka.Commands.ConcurrentAkkaCommandSender< TAuthenticationToken, TTarget >.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.

Parameters
commandThe TCommand to send.
millisecondsTimeoutThe number of milliseconds to wait, or F:System.Threading.Timeout.Infinite (-1) to wait indefinitely.
eventReceiverIf provided, is the IEventReceiver<TAuthenticationToken> that the event is expected to be returned on.
Type Constraints
TCommand :ICommand<TAuthenticationToken>