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.

◆ PublishAndWait< TCommand, TEvent >() [4/6]

virtual TEvent Cqrs.Akka.Commands.AkkaCommandBus< TAuthenticationToken >.PublishAndWait< TCommand, TEvent > ( TCommand  command,
IEventReceiver< TAuthenticationToken >  eventReceiver = null 
)
virtual

Publishes the provided command and waits for an event of TEvent

Parameters
commandThe TCommand to publish.
eventReceiverIf provided, is the IEventReceiver<TAuthenticationToken> that the event is expected to be returned on.

Implements Cqrs.Commands.IPublishAndWaitCommandPublisher< TAuthenticationToken >.

Type Constraints
TCommand :ICommand<TAuthenticationToken>