예제 #1
0
        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;
        }
예제 #2
0
        public FileManager()
        {
            var optionsManager = new OptionsManager(AppDomain.CurrentDomain.BaseDirectory);

            configOptions = optionsManager.GetOptions <EtlOptions>();
        }