/// <summary> /// 保存配置类实例 /// </summary> /// <param name="configinfo"></param> /// <returns></returns> public static bool SaveConfig(LoadBalanceConfigInfo configinfo) { LoadBalanceConfigFileManager lbcfm = new LoadBalanceConfigFileManager(); LoadBalanceConfigFileManager.ConfigInfo = configinfo; return(lbcfm.SaveConfig()); }
static LoadBalanceConfigs() { m_configinfo = LoadBalanceConfigFileManager.LoadConfig(); loadBalanceConfigTimer.AutoReset = true; loadBalanceConfigTimer.Enabled = true; loadBalanceConfigTimer.Elapsed += new System.Timers.ElapsedEventHandler(Timer_Elapsed); loadBalanceConfigTimer.Start(); }
/// <summary> /// 保存配置类实例 /// </summary> /// <param name="configinfo"></param> /// <returns></returns> public static bool SaveConfig(LoadBalanceConfigInfo configinfo) { LoadBalanceConfigFileManager lbcfm = new LoadBalanceConfigFileManager(); LoadBalanceConfigFileManager.ConfigInfo = configinfo; return lbcfm.SaveConfig(); }
/// <summary> /// 重设配置类实例 /// </summary> public static void ResetConfig() { m_configinfo = LoadBalanceConfigFileManager.LoadConfig(); }