private async Task <Envelope> sendEnvelope(Envelope envelope, MessageRoute route) { if (route == null) { throw new ArgumentNullException(nameof(route)); } if (!envelope.RequiresLocalReply) { envelope.ReplyUri = envelope.ReplyUri ?? _channels.SystemReplyUri; } var sending = await route.Send(envelope); Logger.Sent(sending); return(sending); }