public void DoesNotThrowWhenDisposingTwice() { using var tf = new TestFolder(); var fsw = new EliteFileSystemWatcher(tf.Name); #pragma warning disable IDISP016, IDISP017 fsw.Dispose(); fsw.Dispose(); #pragma warning restore IDISP016, IDISP017 }
/// <summary> /// Releases all resources used by the <see cref="StatusWatcher"/>. /// </summary> public void Dispose() { if (_disposed) { return; } _watcher.Dispose(); _disposed = true; }
/// <summary> /// Releases all resources used by the <see cref="BindingsWatcher"/>. /// </summary> public void Dispose() { if (_disposed) { return; } _startPresetWatcher.Dispose(); _customBindsWatcher.Dispose(); _disposed = true; }
/// <summary> /// Releases all resources used by the <see cref="JournalWatcher"/>. /// </summary> public void Dispose() { if (_disposed) { return; } Stop(); _journalFilesWatcher.Dispose(); _journalReadTimer.Dispose(); _disposed = true; }
/// <summary> /// Releases all resources used by the <see cref="GraphicsConfigWatcher"/>. /// </summary> public void Dispose() { if (_disposed) { return; } Stop(); _mainWatcher.Dispose(); _overrideWatcher.Dispose(); _disposed = true; }
/// <summary> /// Releases all resources used by the <see cref="GraphicsConfigWatcher"/>. /// </summary> public void Dispose() { Stop(); _mainWatcher.Dispose(); _overrideWatcher.Dispose(); }
/// <summary> /// Releases all resources used by the <see cref="StatusWatcher"/>. /// </summary> public void Dispose() { _watcher.Dispose(); }
/// <summary> /// Releases all resources used by the <see cref="BindingsWatcher"/>. /// </summary> public void Dispose() { _startPresetWatcher.Dispose(); _customBindsWatcher.Dispose(); }
/// <summary> /// Releases all resources used by the <see cref="JournalWatcher"/>. /// </summary> public void Dispose() { Stop(); _journalFilesWatcher.Dispose(); _journalReadTimer.Dispose(); }