DO NOT DOWNLOAD. DOWNLOAD LATEST STABLE FROM RELEASE TAB

Refactoring the umbrac context

[TFS Changeset #57981]
This commit is contained in:
slace
2009-08-12 11:20:19 +00:00
parent c6d4de7d4b
commit 0bd8b33011
3 changed files with 45 additions and 33 deletions

View File

@@ -7,39 +7,6 @@ using System.Xml.Linq;
namespace umbraco.presentation
{
public class UmbracoServerUtility : HttpServerUtilityWrapper
{
private HttpServerUtility m_Server;
public UmbracoServerUtility(HttpServerUtility server) : base(server)
{
m_Server = server;
}
public string UmbracoPath
{
get
{
return GlobalSettings.Path;
}
}
public string ContentXmlPath
{
get
{
return GlobalSettings.ContentXML;
}
}
public XDocument ContentXml
{
get
{
return XDocument.Load(this.ContentXmlPath);
}
}
}
/// <summary>
/// Class that encapsulates Umbraco information of a specific HTTP request.
/// </summary>

View File

@@ -0,0 +1,44 @@
using System;
using System.Web;
using umbraco.presentation.LiveEditing;
using umbraco.BasePages;
using umbraco.cms.businesslogic.web;
using System.Xml.Linq;
namespace umbraco.presentation
{
public class UmbracoServerUtility : HttpServerUtilityWrapper
{
private HttpServerUtility m_Server;
public UmbracoServerUtility(HttpServerUtility server)
: base(server)
{
m_Server = server;
}
public string UmbracoPath
{
get
{
return GlobalSettings.Path;
}
}
public string ContentXmlPath
{
get
{
return GlobalSettings.ContentXML;
}
}
public XDocument ContentXml
{
get
{
return XDocument.Load(this.ContentXmlPath);
}
}
}
}

View File

@@ -332,6 +332,7 @@
<Compile Include="UmbracoResponse.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="UmbracoServerUtility.cs" />
<Compile Include="umbraco\ActionHandlers\umbEnsureUniqueName.cs">
<SubType>Code</SubType>
</Compile>