protected RpcReply DoSend(MemoryStream ms) { IRpcTransport transport = _client.GetTransport(Identifier, Version); byte[] buffer = ms.ToArray(); buffer = transport.SendAndReceive(buffer); XdrDataReader reader = new XdrDataReader(new MemoryStream(buffer)); RpcMessageHeader header = new RpcMessageHeader(reader); return(new RpcReply { Header = header, BodyReader = reader }); }