![]() |
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.Commands.ISendAndWaitCommandSender< TAuthenticationToken >.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
command | The TCommand to send. |
condition | A delegate to be executed over and over until it returns the TEvent that is desired, return null to keep trying. |
eventReceiver | If provided, is the IEventReceiver<TAuthenticationToken> that the event is expected to be returned on. |
TCommand | : | ICommand<TAuthenticationToken> |