Example #1
0
        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
        }
Example #2
0
        /// <summary>
        /// Releases all resources used by the <see cref="StatusWatcher"/>.
        /// </summary>
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            _watcher.Dispose();
            _disposed = true;
        }
Example #3
0
        /// <summary>
        /// Releases all resources used by the <see cref="BindingsWatcher"/>.
        /// </summary>
        public void Dispose()
        {
            if (_disposed)
            {
                return;
            }

            _startPresetWatcher.Dispose();
            _customBindsWatcher.Dispose();
            _disposed = true;
        }
Example #4
0
        /// <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();
 }
Example #7
0
 /// <summary>
 /// Releases all resources used by the <see cref="StatusWatcher"/>.
 /// </summary>
 public void Dispose()
 {
     _watcher.Dispose();
 }
Example #8
0
 /// <summary>
 /// Releases all resources used by the <see cref="BindingsWatcher"/>.
 /// </summary>
 public void Dispose()
 {
     _startPresetWatcher.Dispose();
     _customBindsWatcher.Dispose();
 }
Example #9
0
 /// <summary>
 /// Releases all resources used by the <see cref="JournalWatcher"/>.
 /// </summary>
 public void Dispose()
 {
     Stop();
     _journalFilesWatcher.Dispose();
     _journalReadTimer.Dispose();
 }