Exemplo n.º 1
0
        public Task <BaseCommand> Outgoing(CommandProducer command)
        {
            command.RequestId = _requestId.FetchNext();
            var request = StandardRequest.WithProducerId(command.RequestId, command.ProducerId);

            return(_requests.CreateTask(request));
        }
Exemplo n.º 2
0
 public Task <BaseCommand> Outgoing(BaseCommand command)
 {
     SetRequestId(command);
     return(_responses.CreateTask(GetResponseIdentifier(command)));
 }