![]()  | 
  
    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. 
   | 
 
| TEvent Cqrs.Bus.InProcessBus< TAuthenticationToken >.PublishAndWait< TCommand, TEvent > | ( | TCommand | command, | 
| IEventReceiver< TAuthenticationToken > | eventReceiver = null  | 
        ||
| ) | 
Publishes the provided command and waits for an event of TEvent
| command | The TCommand to publish. | 
| eventReceiver | If provided, is the IEventReceiver<TAuthenticationToken> that the event is expected to be returned on. | 
Implements Cqrs.Commands.IPublishAndWaitCommandPublisher< TAuthenticationToken >.
| TCommand | : | ICommand<TAuthenticationToken> |