コード例 #1
0
        public Task <BaseCommand> Outgoing(CommandProducer command)
        {
            command.RequestId = _requestId.FetchNext();
            var request = StandardRequest.WithProducerId(command.RequestId, command.ProducerId);

            return(_requests.CreateTask(request));
        }
コード例 #2
0
 public Task <BaseCommand> Outgoing(BaseCommand command)
 {
     SetRequestId(command);
     return(_responses.CreateTask(GetResponseIdentifier(command)));
 }