Beispiel #1
0
 public void Dispose()
 {
     _tcp.AutoReConnect = false;
     _tcp.Stop();
     if (_tcp != _tcpWrite && _tcpWrite != null)
     {
         _tcpWrite.AutoReConnect = false;
         _tcpWrite.Stop();
     }
 }
 protected override void OnStop()
 {
     if (tcp1 != null)
     {
         tcp1.Stop();
     }
     if (tcp2 != null)
     {
         tcp2.Stop();
     }
 }