Example #1
0
 void s_CloseEvent(Session currentSession)
 {
     if (this._SessionList.Contains(currentSession))
     {
         _SessionList.Remove(currentSession);
     }
     if (_SessionList.Count == 0)
     {
         if (_SmpCollector != null)
         {
             _SmpCollector.Stop();
         }
         if (_EvtCollector != null)
         {
             _EvtCollector.Stop();
         }
         _smplSet = null;
         HncApi.HNC_NetExit();
     }
 }
Example #2
0
 // Disconneting
 public void Disconnect_CNC()
 {
     HncApi.HNC_NetExit();
     State          = false;
     ActiveClientNo = -1;
 }