Example #1
0
        /* ================================== ~华丽的间隔线~ ================================== */

        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)));
        }
Example #2
0
 public void SetSiteName(Model.WebSite modelsite)
 {
     if (CheckData.IsObjectNull(modelsite))
     {
         return;
     }
     this.SelfSiteName = PathHelp.ToPathSymbol(modelsite.Name);
     this.ReCreateAbsFilePath();
 }
Example #3
0
 public virtual string GetPathFolder()
 {
     return(string.Format("/{0}", PathHelp.ToPathSymbol(Tools.Const.Names.SYSTEM_AUTO_GENERATES_PATH)));
 }
Example #4
0
 public string GetRootTemplatePathFolder()
 {
     Model.URLReWriterConfig curl = GlobalSystemService.GetInstance().Config.Get <Model.URLReWriterConfig>();
     return(string.Format("/{0}", PathHelp.ToPathSymbol(curl.RootTemplate)));
 }
Example #5
0
 /// <summary>
 /// 重写: 获取 URL 重写路径配置文件文件夹路径
 /// </summary>
 public override string GetPathFolder()
 {
     Model.URLReWriterConfig curl = GlobalSystemService.GetInstance().Config.Get <Model.URLReWriterConfig>();
     return(GetSiteNamePathFolder(PathHelp.ToPathSymbol(curl.RootTemplate)));
 }