Пример #1
0
        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;
        }
Пример #2
0
        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;
        }