示例#1
0
        /// <summary>
        /// 保存配置类实例
        /// </summary>
        /// <param name="configinfo"></param>
        /// <returns></returns>
        public static bool SaveConfig(LoadBalanceConfigInfo configinfo)
        {
            LoadBalanceConfigFileManager lbcfm = new LoadBalanceConfigFileManager();

            LoadBalanceConfigFileManager.ConfigInfo = configinfo;
            return(lbcfm.SaveConfig());
        }
示例#2
0
 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();
 }
示例#4
0
 /// <summary>
 /// 重设配置类实例
 /// </summary>
 public static void ResetConfig()
 {
     m_configinfo = LoadBalanceConfigFileManager.LoadConfig();
 }