protected RpcReply DoSend(MemoryStream ms) { RpcTcpTransport transport = _client.GetTransport(Identifier, Version); byte[] buffer = ms.ToArray(); buffer = transport.Send(buffer); XdrDataReader reader = new XdrDataReader(new MemoryStream(buffer)); RpcMessageHeader header = new RpcMessageHeader(reader); return new RpcReply() { Header = header, BodyReader = reader }; }
public bool Equals(RpcMessageHeader other) { if (other == null) { return(false); } return(other.IsSuccess == IsSuccess && other.TransactionId == TransactionId && object.Equals(other.ReplyHeader, ReplyHeader)); }
protected RpcReply DoSend(MemoryStream ms) { RpcTcpTransport transport = _client.GetTransport(Identifier, Version); byte[] buffer = ms.ToArray(); buffer = transport.Send(buffer); XdrDataReader reader = new XdrDataReader(new MemoryStream(buffer)); RpcMessageHeader header = new RpcMessageHeader(reader); return(new RpcReply { Header = header, BodyReader = reader }); }