Exemple #1
0
        public static void LoadFromApplicationConfig()
        {
            #region Config file loading and verification
            var appCfgFile = System.AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;
            if (string.IsNullOrEmpty(appCfgFile) || !File.Exists(appCfgFile))
            {
                throw ConfigurationException.NoAppConfigFound();
            }

            LoadFromFile(appCfgFile);
            #endregion
        }