public static void RefreshSection(string sectionName) { if (!string.IsNullOrEmpty(sectionName)) { PrepareConfigSystem(); s_configSystem.RefreshConfig(sectionName); } }
/// <summary> /// Purges cached configuration /// </summary> public void RefreshConfig(string sectionName) { if (_next != null) { _next.RefreshConfig(sectionName); } _configuration = null; }
/// <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; } }
/// <summary> /// Modified to retrieve our connection string section /// </summary> public void RefreshConfig(string sectionName) { if (sectionName == "connectionStrings") { _connectionStrings = null; } _baseconf.RefreshConfig(sectionName); }
public void RefreshConfig(string sectionName) { if (sectionName == "appSettings") { appsettings = null; } baseconf.RefreshConfig(sectionName); }
/// <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); }
public void RefreshConfig(string sectionName) { if (sectionName == "appSettings") { this.appsettings = null; } if (sectionName == "connectionStrings") { this.connectionStrings = null; } clientConfigSystem.RefreshConfig(sectionName); }
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); }
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(); } } }
public static void RefreshSection(string sectionName) { ConfigurationSystem.RefreshConfig(sectionName); }
public void RefreshConfig(string sectionName) { _originalConfig.RefreshConfig(sectionName); }
void IInternalConfigSystem.RefreshConfig(string sectionName) { originalConfiguration.RefreshConfig(sectionName); }
/// <summary> /// 依據指定的區段名稱重新整理組態系統。 /// </summary> /// <param name="sectionName">組態區段的名稱。</param> public void RefreshConfig(string sectionName) { clientConfigSystem.RefreshConfig(sectionName); }