protected override void Dispose(bool disposing)
        {
            if (_isDisposed)
            {
                return;
            }
            _isDisposed = true;

            if (disposing)
            {
                _socket.Dispose();
                _serviceManager.Dispose();
                _messagingManager.Dispose();
            }
        }
Exemple #2
0
        protected override void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }
            _disposed = true;

            if (disposing)
            {
                _tcpClient.Dispose();
                _networkStream.Dispose();
                _messagingManager.Stop();
                _messagingManager.Dispose();
            }
        }
Exemple #3
0
        protected override void Dispose(bool disposing)
        {
            this.Exit();

            if (_isDisposed)
            {
                return;
            }
            _isDisposed = true;

            if (disposing)
            {
                _tcpClient.Dispose();
                _messagingManager.Stop();
                _messagingManager.Dispose();
            }
        }