Exemplo n.º 1
0
        protected override void OnStart(string[] args)
        {
            string serverFolder  = ConfigurationManager.AppSettings["CSVUploadFolder"];
            string doneFolder    = ConfigurationManager.AppSettings["DoneFolder"];
            string notDoneFolder = ConfigurationManager.AppSettings["NotDoneFolder"];

            _csvWorker = new CsvWorker(serverFolder, doneFolder, notDoneFolder);
            _csvWorker.RunWatch();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            string    serverFolder  = ConfigurationManager.AppSettings["CSVUploadFolder"];
            string    doneFolder    = ConfigurationManager.AppSettings["DoneFolder"];
            string    notDoneFolder = ConfigurationManager.AppSettings["NotDoneFolder"];
            CsvWorker csvWorker     = new CsvWorker(serverFolder, doneFolder, notDoneFolder);

            csvWorker.RunWatch();
            Console.WriteLine(@"Press 'q' to exit");
            while (Console.Read() != 'q')
            {
            }
        }