Sends the provided command and waits until the specified condition is satisfied an event of TEvent
- Parameters
-
| 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. |
Implements Cqrs.Commands.ISendAndWaitCommandSender< TAuthenticationToken >.
- Type Constraints
-
| TCommand | : | ICommand<TAuthenticationToken> | |