DO NOT DOWNLOAD. DOWNLOAD LATEST STABLE FROM THE RELEASE TAB

No these aren't changes to make the demos work at CG09. Move along

[TFS Changeset #55237]
This commit is contained in:
slace
2009-06-21 19:12:55 +00:00
parent b4f898fe8c
commit 8f6415abee
15 changed files with 8669 additions and 201 deletions

View File

@@ -13,6 +13,15 @@ namespace umbraco.presentation
{
private HttpContext m_HttpContext;
/// <summary>
/// Creates a new Umbraco context.
/// </summary>
/// <param name="httpContext">The HTTP context on which the Umbraco context operates.</param>
public UmbracoContext(HttpContext httpContext)
{
m_HttpContext = httpContext;
}
/// <summary>
/// Gets the current Umbraco Context.
/// </summary>
@@ -87,24 +96,15 @@ namespace umbraco.presentation
}
}
/// <summary>
/// Creates a new Umbraco context.
/// </summary>
/// <param name="httpContext">The HTTP context on which the Umbraco context operates.</param>
public UmbracoContext(HttpContext httpContext)
{
m_HttpContext = httpContext;
}
/// <summary>
/// Gets the response for the current context
/// </summary>
/// <value>The response.</value>
public HttpResponse Response
public virtual UmbracoResponse Response
{
get
{
return this.m_HttpContext.Response;
return new UmbracoResponse(this.m_HttpContext.Response);
}
}
@@ -112,12 +112,21 @@ namespace umbraco.presentation
/// Gets the request for the current context
/// </summary>
/// <value>The request.</value>
public HttpRequest Request
public virtual UmbracoRequest Request
{
get
{
return this.m_HttpContext.Request;
return new UmbracoRequest(this.m_HttpContext.Request);
}
}
/// <summary>
/// Gets the base URL.
/// </summary>
/// <returns></returns>
public virtual string GetBaseUrl()
{
return this.Request.Url.GetLeftPart(UriPartial.Authority);
}
}
}