예제 #1
0
 protected override void OnStart(string[] args)
 {
     Config();
     watcher = new Watcher(movingOptions, watcherOptions, archiveOptions, optionsManager.Report);
     watcher.Start();
     logger.Log("Service started...");
 }
예제 #2
0
파일: ETL.cs 프로젝트: danymalets/csharp
        protected override void OnStart(string[] args)
        {
            Configuration config;

            try
            {
                ConfigurationProvider provider = new ConfigurationProvider(path1);
                config = provider.GetConfiguration();
            }
            catch
            {
                config = new Configuration();
            }
            watcher = new Watcher(config.sourcePath, config.targetPath, config.needArchive);
            watcher.Start();
        }
예제 #3
0
 protected override void OnStart(string[] args)
 {
     watcher = new Watcher(source, target);
     watcher.Start();
 }