Ejemplo n.º 1
0
        public void Dispose()
        {
            if (_isDisposed)
            {
                return;
            }

            _transceiver.OnMessageReceived -= TransceiverOnMessageReceived;
            _transceiver.Dispose();

            _positionProvider.Dispose();

            _isDisposed = true;
        }
Ejemplo n.º 2
0
        public void Dispose()
        {
            _underlying.Dispose();

            if (SslStream != null)
            {
                SslStream.Dispose();
                try
                {
                    _writeStream !.Dispose();
                }
                catch (Exception)
                {
                    // Ignore: the buffer flush which will fail since the underlying transport is closed.
                }
            }
        }
Ejemplo n.º 3
0
 public void Dispose()
 {
     _cache.Dispose();
     _transceiver.Dispose();
 }