示例#1
0
        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 };
        }
示例#2
0
        public bool Equals(RpcMessageHeader other)
        {
            if (other == null)
            {
                return(false);
            }

            return(other.IsSuccess == IsSuccess &&
                   other.TransactionId == TransactionId &&
                   object.Equals(other.ReplyHeader, ReplyHeader));
        }
示例#3
0
        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
            });
        }