/* ================================== ~华丽的间隔线~ ================================== */ public string GetSiteNamePathFolder(string root) { if (CheckData.IsStringNull(root)) { return(string.Format("/{0}", this.SelfSiteName)); } return(string.Format("/{0}/{1}", PathHelp.ToPathSymbol(root), PathHelp.ToPathSymbol(this.SelfSiteName))); }
public void SetSiteName(Model.WebSite modelsite) { if (CheckData.IsObjectNull(modelsite)) { return; } this.SelfSiteName = PathHelp.ToPathSymbol(modelsite.Name); this.ReCreateAbsFilePath(); }
public virtual string GetPathFolder() { return(string.Format("/{0}", PathHelp.ToPathSymbol(Tools.Const.Names.SYSTEM_AUTO_GENERATES_PATH))); }
public string GetRootTemplatePathFolder() { Model.URLReWriterConfig curl = GlobalSystemService.GetInstance().Config.Get <Model.URLReWriterConfig>(); return(string.Format("/{0}", PathHelp.ToPathSymbol(curl.RootTemplate))); }
/// <summary> /// 重写: 获取 URL 重写路径配置文件文件夹路径 /// </summary> public override string GetPathFolder() { Model.URLReWriterConfig curl = GlobalSystemService.GetInstance().Config.Get <Model.URLReWriterConfig>(); return(GetSiteNamePathFolder(PathHelp.ToPathSymbol(curl.RootTemplate))); }