/// <summary>
        /// 保存配置类实例
        /// </summary>
        /// <param name="configinfo"></param>
        /// <returns></returns>
        public static bool SaveConfig(MessageCodesConfigInfo configinfo)
        {
            MessageCodesConfigFileManager rcfm = new MessageCodesConfigFileManager();

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