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(); } }
// Disconneting public void Disconnect_CNC() { HncApi.HNC_NetExit(); State = false; ActiveClientNo = -1; }