private static void OnConfigReloaded(object sender, ConfigReloadedEventArgs e) { try { _setting.Reset(); } catch (Exception ex) { TraceLog.WriteError("GameEnvironment reload error:{0}", ex); } }
private static void OnScriptSettingReLoad(object sender, ConfigReloadedEventArgs e) { try { } catch (Exception) { } }
internal static void OnConfigReloaded(object sender, ConfigReloadedEventArgs e) { EventHandler <ConfigReloadedEventArgs> handler = ConfigReloaded; if (handler != null) { handler(sender, e); } }
private static void OnConfigReloaded(object sender, ConfigReloadedEventArgs e) { try { _setting.Reset(); } catch (Exception ex) { TraceLog.WriteError("GameEnvironment reload error:{0}", ex); } }
/// <summary> /// /// </summary> public void Reload() { lock (_dataList) { DoClearData(); LoadConfigData(); } TraceLog.WriteLine("{0} The configger has reloaded.", DateTime.Now.ToString("HH:mm:ss")); var e = new ConfigReloadedEventArgs(); ConfigManager.OnConfigReloaded(this, e); }
private static void OnConfigReload(object sender, ConfigReloadedEventArgs e) { try { MessageQueueSection section = GetSection(); InitRedisQueue(section); InitSqlQueue(section); DbConnectionProvider.Initialize(); } catch (Exception ex) { TraceLog.WriteError("ConfigReload error:{0}", ex); } }
internal static void OnConfigReloaded(object sender, ConfigReloadedEventArgs e) { ConfigReloaded?.Invoke(sender, e); }