Files
Umbraco-CMS/umbraco/presentation/UmbracoServerUtility.cs
slace 0bd8b33011 DO NOT DOWNLOAD. DOWNLOAD LATEST STABLE FROM RELEASE TAB
Refactoring the umbrac context

[TFS Changeset #57981]
2009-08-12 11:20:19 +00:00

45 lines
955 B
C#

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);
}
}
}
}