public bool Init() { m_configMgr = IGConfigManagerRemote.GetInstance(); m_timer = new System.Timers.Timer(IGSMStatus.IGSMSTATUS_HEARTHBEAT_CHECKTIME); m_timer.Elapsed += new ElapsedEventHandler(timer_Elapsed); m_timer.Start(); return true; }
public static IGConfigManagerRemote GetInstance() { if (mg_configMgr == null) { mg_configMgr = new IGConfigManagerRemote(); if (!mg_configMgr.Init()) mg_configMgr = null; } return mg_configMgr; }