using Infrastructure.Extensions.AutofacManager;
using Infrastructure.Provider;
namespace Infrastructure.Extensions
{
public static class ServerExtension
{
///
/// 返回的路径后面不带/,拼接时需要自己加上/
///
///
///
public static string MapPath(this string path)
{
return MapPath(path, false);
}
///
///
///
///
/// 获取wwwroot路径
///
public static string MapPath(this string path,bool rootPath)
{
return AutofacContainerModule.GetService().MapPath(path,rootPath);
}
}
}