using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Routing;
namespace Everest.CmsServices.Web{
public class KoobooHttpContextWrapper : HttpContextWrapper
{
private readonly HttpContext _context;
public KoobooHttpContextWrapper(HttpContext httpContext)
: base(httpContext)
{
_context = httpContext;
}
HttpRequestBase request;
public override HttpRequestBase Request
{
get
{
if (request == null)
{
request = new KoobooHttpRequestWrapper(_context.Request);
}
return request;
}
}
public override HttpResponseBase Response
{
get
{
return new KoobooHttpResponseWrapper(_context.Response, this);
}
}
private RequestContext _requestContext;
public RequestContext RequestContext
{
get
{
return _requestContext;
}
set
{
_requestContext = value;
((KoobooHttpRequestWrapper)Request).RequestContext = value;
}
}
}
}
|