/// <summary> /// 静态构造函数初始化相应实例和定时器 /// </summary> static TypeConfigs() { m_configinfo = TypeConfigFileManager.LoadConfig(); typeConfigTimer.AutoReset = true; typeConfigTimer.Enabled = true; typeConfigTimer.Elapsed += new System.Timers.ElapsedEventHandler(Timer_Elapsed); typeConfigTimer.Start(); }
/// <summary> /// 重设配置类实例 /// </summary> public static void ResetConfig() { m_configinfo = TypeConfigFileManager.LoadConfig(); }