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

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