Esempio 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));
        }
Esempio n. 2
0
 public Task <BaseCommand> Outgoing(BaseCommand command)
 {
     SetRequestId(command);
     return(_responses.CreateTask(GetResponseIdentifier(command)));
 }