/// ----------------------------------------------------------------------------- /// <summary> /// Deconnexion /// </summary> /// ----------------------------------------------------------------------------- private void Disconnect() { if (_client == null) { return; } _stream.Close(); _client.Close(); IConnectionContextResponse response = _tunnel.Disconnect(new ConnectionContextRequest(_sid, _cid)); Log(response.Message, ESeverity.INFO); _stream = null; _client = null; }