Ejemplo n.º 1
0
        protected override void Dispose(bool isDisposing)
        {
            if (_isDisposed)
            {
                return;
            }
            _isDisposed = true;

            if (isDisposing)
            {
                _removedBlockEventQueue.Dispose();

                if (_blocksManager != null)
                {
                    try
                    {
                        _blocksManager.Dispose();
                    }
                    catch (Exception)
                    {
                    }

                    _blocksManager = null;
                }

                if (_checkTimer != null)
                {
                    try
                    {
                        _checkTimer.Dispose();
                    }
                    catch (Exception)
                    {
                    }

                    _checkTimer = null;
                }

                if (_checkTimer != null)
                {
                    try
                    {
                        _checkTimer.Dispose();
                    }
                    catch (Exception)
                    {
                    }

                    _checkTimer = null;
                }
            }
        }