public Watcher() { string appDirectory = AppDomain.CurrentDomain.BaseDirectory; optionsManager = new OptionsManager(appDirectory); ETLOptions options = optionsManager.GetOptions <ETLOptions>() as ETLOptions; SDir = options.FolderOptions.SourceDir; TDir = options.FolderOptions.TargetDir; saveArchive = options.ArchiveOptions.ArchiveDir; Logger.loggerOptions = options.LogOptions; Logger.loaded = true; watcher = new FileSystemWatcher(SDir); watcher.Created += Created; }
public FileManager() { var optionsManager = new OptionsManager(AppDomain.CurrentDomain.BaseDirectory); configOptions = optionsManager.GetOptions <EtlOptions>(); }