public void DoUpdate(string path, string key, IICConfigType configType) { key = key ?? ""; IList <ConfigUpdater> updaters = _index.Find(path, key, configType); if (updaters.Count == 0) { throw new Exception(string.Format("ConfigUpdater not found {0}:{1}.{2}", configType, path, key)); } foreach (ConfigUpdater updater in updaters) { try { updater.OnUpdate(); } catch (Exception ex) { SystemLog.Error(LogEventID.ConfigFailed, ex, "Config UpdateFailed - {0}", updater.ToString()); throw; } } }
public ConfigUpdater(string path, string key, IICConfigType type) { p_path = path; p_key = key; p_type = type; }
public static void UpdateConfig(string path, string key, IICConfigType configType) { _proxy.DoUpdate(path, key, configType); }
public ConfigurationFailedException(IICConfigType type, string path, Exception e) : base(string.Format("ConfigFailed<{0}>, {1}", type, path), e) { }
public ConfigurationFailedException(IICConfigType type, string path, string key, string field, Exception e) : base(string.Format("ConfigFailed<{0}> {1}.{2}#{3}", type, path, key, field), e) { }
public ConfigurationNotFoundException(IICConfigType type, string path, string key) : base(string.Format("ConfigurationNotFound<{0}>: {1}.{2}", type, path, key), null) { _type = type; _path = path; }
public ConfigurationNotFoundException(string path) : base(string.Format("ConfigurationNotFound {0}", path), null) { _type = IICConfigType.Field; _path = path; }