Ejemplo n.º 1
0
 public override void exitService()
 {
     m_run = false;
     m_threadWork.Join();
     m_sqlDb = null;
     m_form  = null;
 }
Ejemplo n.º 2
0
 public override void exitService()
 {
     m_run = false;
     if (m_threadWork != null)
     {
         m_threadWork.Join();
     }
     m_form = null;
 }
Ejemplo n.º 3
0
 public void setForm(DataStatService.Form1 f)
 {
     m_form = f;
     if (m_form != null)
     {
         XmlConfig xml   = ResMgr.getInstance().getRes("dbserver.xml");
         string    dbURL = xml.getString("mongodbAccount", "");
         m_form.setDbIP(dbURL);
     }
 }
Ejemplo n.º 4
0
 public void setForm(DataStatService.Form1 f)
 {
     m_form = f;
     if (m_form != null)
     {
         XmlConfig xml   = ResMgr.getInstance().getRes("dbserver.xml");
         string    mysql = xml.getString("mysql", "");
         m_form.setDbIP(DBMgr.getInstance().getIP(m_serverId), mysql);
     }
 }
Ejemplo n.º 5
0
 public override void exitService()
 {
     m_run = false;
     if (m_threadWork != null)
     {
         try
         {
             m_threadWork.Interrupt();
         }
         catch (System.Exception ex)
         {
         }
     }
     m_threadWork.Join();
     m_form = null;
 }