Пример #1
0
 private void LocalDisconnect()
 {
     _clientState = ClientState.Disconnecting;
     _timer.Stop();
     _client.Disconnect();
     _clientState = ClientState.Disconnected;
 }
Пример #2
0
        private void Disconnect()
        {
#if HAVE_SYNC
            if (IsSync)
                Client.Disconnect();
            else
#endif
                Client.DisconnectAsync().Wait();
        }