public RpcPipeServerTransaction(RpcPipeServerChannel channel, NamedPipeServerStream stream) : base(channel, null, null) { _stream = stream; _channel = channel; _context = RpcPipeStreamHelper.ReadStream(_stream, out _buffer); var req = new RpcRequest() { ServiceAtComputer = _context.From, Service = _context.ServiceName, Method = _context.MethodName, ContextUri = _context.To, }; if (_context.HasBody) { req.BodyBuffer = new RpcBodyBuffer(_buffer); } else { req.BodyBuffer = null; } SetRequest(req); }
public RpcPipeServerTransaction(NamedPipeServerStream stream, RpcPipeServerChannel channel) { _stream = stream; _channel = channel; }