public Task <BaseCommand> Outgoing(CommandProducer command) { command.RequestId = _requestId.FetchNext(); var request = StandardRequest.WithProducerId(command.RequestId, command.ProducerId); return(_requests.CreateTask(request)); }
public Task <BaseCommand> Outgoing(BaseCommand command) { SetRequestId(command); return(_responses.CreateTask(GetResponseIdentifier(command))); }