public DirectoryWatcher(DirectoryWatcherSettings settings,
                         Action <List <FileInfo>, DirectoryChange> newFileAction = null)
 {
     _settings              = settings;
     _newFileAction         = newFileAction;
     KnownFilePaths         = new Dictionary <string, List <FileInfo> >();
     _isScanningDictionary  = new Dictionary <string, bool>();
     _dirWatcherTimer       = new DispatcherTimer();
     _dirWatcherTimer.Tick += (sender, args) => CheckDirectoriesForNewFiles();
     UpdateTimerInterval();
 }
 public void SetSettings(DirectoryWatcherSettings settings)
 {
     _settings = settings;
     UpdateTimerInterval();
 }