![]() |
CQRS.NET
4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.
|
TEvent Cqrs.Akka.Commands.ConcurrentAkkaCommandPublisher< TAuthenticationToken, TTarget >.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.
command | The TCommand to publish. |
timeout | A T:System.TimeSpan that represents the number of milliseconds to wait, or a TimeSpan that represents -1 milliseconds to wait indefinitely. |
eventReceiver | If provided, is the IEventReceiver<TAuthenticationToken> that the event is expected to be returned on. |
TCommand | : | ICommand<TAuthenticationToken> |