Exemplo n.º 1
0
        /// <summary>
        /// 保存配置类实例
        /// </summary>
        /// <param name="configinfo"></param>
        /// <returns></returns>
        public static bool SaveConfig(RabbitMQConfigInfo configinfo)
        {
            RabbitMQConfigFileManager rmcfm = new RabbitMQConfigFileManager();

            RabbitMQConfigFileManager.ConfigInfo = configinfo;
            return(rmcfm.SaveConfig());
        }
Exemplo n.º 2
0
 static RabbitMQConfigs()
 {
     m_configinfo = RabbitMQConfigFileManager.LoadConfig();
     rabbitMQConfigTimer.AutoReset = true;
     rabbitMQConfigTimer.Enabled   = true;
     rabbitMQConfigTimer.Elapsed  += new System.Timers.ElapsedEventHandler(Timer_Elapsed);
     rabbitMQConfigTimer.Start();
 }
Exemplo n.º 3
0
 /// <summary>
 /// 保存配置类实例
 /// </summary>
 /// <param name="configinfo"></param>
 /// <returns></returns>
 public static bool SaveConfig(RabbitMQConfigInfo configinfo)
 {
     RabbitMQConfigFileManager rmcfm = new RabbitMQConfigFileManager();
     RabbitMQConfigFileManager.ConfigInfo = configinfo;
     return rmcfm.SaveConfig();
 }
Exemplo n.º 4
0
 /// <summary>
 /// 重设配置类实例
 /// </summary>
 public static void ResetConfig()
 {
     m_configinfo = RabbitMQConfigFileManager.LoadConfig();
 }