Files
Umbraco-CMS/umbraco/presentation/UmbracoServerUtility.cs
slace 5783e82ec7 DO NOT DOWNLOAD, DOWNLOAD A DIFFERENT VERSION OF THE SOURCE
New linq to umbraco code gen (poco + abstractions), moved to support new schema only in NodeDataProvider

[TFS Changeset #63914]
2010-02-11 10:37:35 +00:00

59 lines
1.3 KiB
C#

using System;
using System.Web;
using umbraco.presentation.LiveEditing;
using umbraco.BasePages;
using umbraco.cms.businesslogic.web;
using System.Xml.Linq;
using umbraco.IO;
namespace umbraco.presentation
{
public class UmbracoServerUtility : HttpServerUtilityWrapper
{
private HttpServerUtility m_Server;
public UmbracoServerUtility(HttpServerUtility server)
: base(server)
{
m_Server = server;
}
public override string MapPath(string path)
{
return IOHelper.MapPath(path);
}
public string UmbracoPath
{
get
{
return IOHelper.ResolveUrl( SystemDirectories.Umbraco );
}
}
public string ContentXmlPath
{
get
{
return IOHelper.ResolveUrl( SystemFiles.ContentCacheXml );
}
}
public XDocument ContentXml
{
get
{
return XDocument.Load(this.ContentXmlPath);
}
}
public string DataFolder
{
get
{
return IOHelper.ResolveUrl( SystemDirectories.Data );
}
}
}
}