Example #1
0
 public void Release()
 {
     if (Api != null)
     {
         Connected = false;
         Api.Release();
         _queryManager.Close();
         _queryManager = null;
         _processor.Close();
         _processor = null;
         Api        = null;
     }
 }
Example #2
0
 public void Release()
 {
     if (api != null)
     {
         _publisher.Post(ConnectionStatus.Releasing);
         _queryManager.Close();
         _queryManager = null;
         Connected     = false;
         api.Release();
         api = null;
         _processor.Close();
         _processor = null;
         _publisher.Post(ConnectionStatus.Disconnected);
     }
 }