public SystemHttpContext(System.Net.HttpListenerContext context) { _context = context; Request = new SystemHttpRequest(_context); User = _context.User; Response = new SystemHttpResponse(_context); Id = UniqueIdGenerator.GetNext(); LocalEndPoint = Request.LocalEndPoint; RemoteEndPoint = Request.RemoteEndPoint; }
public SystemHttpContext(System.Net.HttpListenerContext context) { _context = context; Request = new SystemHttpRequest(_context); User = _context.User ?? Auth.NoUser; Response = new SystemHttpResponse(_context); Id = UniqueIdGenerator.GetNext(); LocalEndPoint = Request.LocalEndPoint; RemoteEndPoint = Request.RemoteEndPoint; Route = RouteMatch.None; Session = SessionProxy.None; }