Ejemplo n.º 1
0
        /// <summary>
        /// Redirects the specified URL.
        /// </summary>
        /// <param name="url">The URL.</param>
        private void Redirect(string url)
        {
            IDisposable oldRequest  = request;
            IDisposable oldResponse = response;

            request  = SimpleHttpRequest.Create(url, response.Cookies, request.IsAuthenticated);
            response = SimpleHttpResponse.Create(Redirect);

            oldRequest.Dispose();
            oldResponse.Dispose();
        }
Ejemplo n.º 2
0
 private SimpleHttpContext(string requestUrl)
 {
     request  = SimpleHttpRequest.Create(requestUrl, new HttpCookieCollection(), true);
     response = SimpleHttpResponse.Create(Redirect);
     session  = SimpleHttpSession.Create(true);
 }