protected override void Dispose(bool isDisposing) { if (_isDisposed) { return; } _isDisposed = true; if (isDisposing) { _addedBlockEventQueue.Dispose(); _removedBlockEventQueue.Dispose(); if (_sectorsManager != null) { try { _sectorsManager.Dispose(); } catch (Exception) { } _sectorsManager = null; } if (_fileStream != null) { try { _fileStream.Dispose(); } catch (Exception) { } _fileStream = null; } if (_updateTimer != null) { try { _updateTimer.Dispose(); } catch (Exception) { } _updateTimer = null; } } }
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; } } }