Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Returns default ConfigServer.json
        /// </summary>
        private static ConfigServer Init()
        {
            ConfigServer result = new ConfigServer();

            result.IsServerSideRendering = true;
            result.WebsiteList           = new List <ConfigServerWebsite>();
            return(result);
        }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
        /// <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);
            }
        }
Ejemplo n.º 5
0
 internal static void Save(ConfigServer configServer)
 {
     UtilFramework.ConfigSave(configServer, FileName);
 }