コード例 #1
0
 public static void RefreshSection(string sectionName)
 {
     if (!string.IsNullOrEmpty(sectionName))
     {
         PrepareConfigSystem();
         s_configSystem.RefreshConfig(sectionName);
     }
 }
コード例 #2
0
 /// <summary>
 /// Purges cached configuration
 /// </summary>
 public void RefreshConfig(string sectionName)
 {
     if (_next != null)
     {
         _next.RefreshConfig(sectionName);
     }
     _configuration = null;
 }
コード例 #3
0
        /// <summary>
        /// Required logic when creating a custom custom configuration system
        /// </summary>
        /// <param name="sectionName">First level configuration section</param>
        public void RefreshConfig(string sectionName)
        {
            switch (sectionName)
            {
            case "appSettings":
                loadAndMergeAppSettings();
                return;

            case "connectionStrings":
                _nativeConfigSystem.RefreshConfig(sectionName);
                return;

            default:
                _nativeConfigSystem.RefreshConfig(sectionName);
                return;
            }
        }
コード例 #4
0
 /// <summary>
 /// Modified to retrieve our connection string section
 /// </summary>
 public void RefreshConfig(string sectionName)
 {
     if (sectionName == "connectionStrings")
     {
         _connectionStrings = null;
     }
     _baseconf.RefreshConfig(sectionName);
 }
コード例 #5
0
 public void RefreshConfig(string sectionName)
 {
     if (sectionName == "appSettings")
     {
         appsettings = null;
     }
     baseconf.RefreshConfig(sectionName);
 }
コード例 #6
0
 /// <summary>
 /// Modified to retrieve our connection string section
 /// </summary>
 public void RefreshConfig(string sectionName)
 {
     if (sectionName == "connectionStrings")
     {
         lock (lockme)
         {
             _connectionStrings = null;
             _appSettings       = null;
         }
     }
     _baseconf.RefreshConfig(sectionName);
 }
コード例 #7
0
 public void RefreshConfig(string sectionName)
 {
     if (sectionName == "appSettings")
     {
         this.appsettings = null;
     }
     if (sectionName == "connectionStrings")
     {
         this.connectionStrings = null;
     }
     clientConfigSystem.RefreshConfig(sectionName);
 }
コード例 #8
0
        public static void RefreshSection(string sectionName)
        {
            // Avoid unintended AV's by ensuring sectionName is not empty.
            // For consistency with GetSection, we should not throw an InvalidArgumentException.
            if (String.IsNullOrEmpty(sectionName))
            {
                return;
            }

            PrepareConfigSystem();

            s_configSystem.RefreshConfig(sectionName);
        }
コード例 #9
0
        public void RefreshConfig(string sectionName)
        {
            if (sectionName == "appSettings")
            {
                this.appSettings = null;
            }

            if (sectionName == "connectionStrings")
            {
                this.connectionStrings = null;
            }

            clientConfigSystem.RefreshConfig(sectionName);
            if (configProviders != null)
            {
                foreach (var p in configProviders)
                {
                    p.LoadConfigurations();
                }
            }
        }
コード例 #10
0
 public static void RefreshSection(string sectionName)
 {
     ConfigurationSystem.RefreshConfig(sectionName);
 }
コード例 #11
0
 public void RefreshConfig(string sectionName)
 {
     _originalConfig.RefreshConfig(sectionName);
 }
コード例 #12
0
 void IInternalConfigSystem.RefreshConfig(string sectionName)
 {
     originalConfiguration.RefreshConfig(sectionName);
 }
コード例 #13
0
 /// <summary>
 /// 依據指定的區段名稱重新整理組態系統。
 /// </summary>
 /// <param name="sectionName">組態區段的名稱。</param>
 public void RefreshConfig(string sectionName)
 {
     clientConfigSystem.RefreshConfig(sectionName);
 }