/ src / modules / launcher / Wox.Infrastructure / Storage / FileSystemWatcherWrapper.cs
FileSystemWatcherWrapper.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  using System.Collections.ObjectModel;
 6  using System.IO;
 7  
 8  namespace Wox.Infrastructure.Storage
 9  {
10      // File System Watcher Wrapper class which implements the IFileSystemWatcherWrapper interface
11      public sealed class FileSystemWatcherWrapper : FileSystemWatcher, IFileSystemWatcherWrapper
12      {
13          public FileSystemWatcherWrapper()
14          {
15          }
16  
17          Collection<string> IFileSystemWatcherWrapper.Filters
18          {
19              get => this.Filters;
20              set
21              {
22                  if (value != null)
23                  {
24                      foreach (string filter in value)
25                      {
26                          this.Filters.Add(filter);
27                      }
28                  }
29              }
30          }
31      }
32  }