Exemplo n.º 1
0
        public OnlineHttpContext(HttpContext httpContext)
        {
            _httpContext = httpContext;

            _httpRequest = new OnlineHttpRequest(httpContext.Request);
            _httpResponse = new OnlineHttpResponse(httpContext.Response);
            _httpServerUtility = new OnlineHttpServerUtility(httpContext.Server);

            if (httpContext.Session != null)
                _httpSessionState = new OnlineHttpSessionState(httpContext.Session);
        }
Exemplo n.º 2
0
        public OnlineHttpContext(HttpContext httpContext)
        {
            _httpContext = httpContext;

            _httpRequest       = new OnlineHttpRequest(httpContext.Request);
            _httpResponse      = new OnlineHttpResponse(httpContext.Response);
            _httpServerUtility = new OnlineHttpServerUtility(httpContext.Server);

            if (httpContext.Session != null)
            {
                _httpSessionState = new OnlineHttpSessionState(httpContext.Session);
            }
        }