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