static RabbitMQConfigs() { m_configinfo = RabbitMQConfigFileManager.LoadConfig(); rabbitMQConfigTimer.AutoReset = true; rabbitMQConfigTimer.Enabled = true; rabbitMQConfigTimer.Elapsed += new System.Timers.ElapsedEventHandler(Timer_Elapsed); rabbitMQConfigTimer.Start(); }
/// <summary> /// 重设配置类实例 /// </summary> public static void ResetConfig() { m_configinfo = RabbitMQConfigFileManager.LoadConfig(); }