/// <summary> /// Returns FolderNameServer. For example: "Application.Server/Framework/Application.Website/LayoutDefault/dist/". /// </summary> public string FolderNameServerGet(ConfigServer configServer, string prefixRemove) { string result = "Application.Server/Framework/" + FolderNameDist; UtilFramework.Assert(result.StartsWith(prefixRemove)); result = result.Substring(prefixRemove.Length); return(result); }
/// <summary> /// Returns default ConfigServer.json /// </summary> private static ConfigServer Init() { ConfigServer result = new ConfigServer(); result.IsServerSideRendering = true; result.WebsiteList = new List <ConfigServerWebsite>(); return(result); }
/// <summary> /// Returns FolderNameServer. For example: "Application.Server/Framework/Application.Website/Layout01/". /// </summary> public string FolderNameServerGet(ConfigServer configServer, string prefixRemove) { string result = string.Format("Application.Server/Framework/Application.Website/Layout{0:00}/", configServer.WebsiteList.IndexOf(this) + 1); UtilFramework.Assert(result.StartsWith(prefixRemove)); result = result.Substring(prefixRemove.Length); return(result); }
/// <summary> /// Returns WebServer ConnectionString. /// </summary> public static string ConnectionString(bool isFrameworkDb) { var configServer = ConfigServer.Load(); if (isFrameworkDb == false) { return(configServer.ConnectionStringApplication); } else { return(configServer.ConnectionStringFramework); } }
internal static void Save(ConfigServer configServer) { UtilFramework.ConfigSave(configServer, FileName); }