Пример #1
0
 private void OnDestroy()
 {
     if (_client != null)
     {
         _client.Dispose();
         _client = null;
     }
 }
 public void TearDown()
 {
     if (_client == null)
     {
         return;
     }
     _client.Disconnect();
     _client.Dispose();
     _client = null;
 }