public PeriodicalFileWatcher(FileWatcherOptions options, IDataProcessor<string> dataProcessor, ILogger logger) { _options = options; _dataProcessor = dataProcessor; _processedFiles = new ConcurrentDictionary<string, bool>(); _ctSrc = new CancellationTokenSource(); _logger = logger; }
public FileWatcher(FileWatcherOptions options, IDataProcessor<string> dataProcessor) { _options = options; _dataProcessor = dataProcessor; _watchers = new List<FileSystemWatcher>(); }