/*
Kooboo is a content management system based on ASP.NET MVC framework. Copyright 2009 Yardi Technology Limited.
This program is free software: you can redistribute it and/or modify it under the terms of the
GNU General Public License version 3 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program.
If not, see http://www.kooboo.com/gpl3/.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.SessionState;
namespace Everest.CmsServices.Extension.Module{
/// <summary>
///
/// </summary>
public class ModuleHttpContext : HttpContextWrapper
{
HttpRequestBase _httpRequest;
HttpResponseBase _httpResponse;
/// <summary>
/// Initializes a new instance of the <see cref="ModuleHttpContext"/> class.
/// </summary>
/// <param name="httpContext">The HTTP context.</param>
/// <param name="httpReqeust">The HTTP reqeust.</param>
/// <param name="httpResponse">The HTTP response.</param>
public ModuleHttpContext(HttpContext httpContext, HttpRequestBase httpReqeust, HttpResponseBase httpResponse)
: base(httpContext)
{
this._httpRequest = httpReqeust;
this._httpResponse = httpResponse;
}
/// <summary>
/// Gets the request.
/// </summary>
/// <value>The request.</value>
public override HttpRequestBase Request
{
get
{
return this._httpRequest;
}
}
/// <summary>
/// Gets the response.
/// </summary>
/// <value>The response.</value>
public override HttpResponseBase Response
{
get
{
return this._httpResponse;
}
}
}
}
|