Esempio n. 1
0
        void writeScrapeRunToDB(string file)
        {
            Console.WriteLine("{0} New scrape file: {1}", DateTime.Now, new FileInfo(file).Name);

            // sleep 5 seconds - let the file get written...
            Thread.Sleep(15000);
            importData.ImportScrapeFile(file);
        }
 private void importFile(string file)
 {
     WriteLine("{0} New scrape file received", DateTime.Now);
     // sleep 15 seconds - let the file get written...
     Thread.Sleep(15000);
     try
     {
         WriteLine("start import");
         importData.ImportScrapeFile(file);
         WriteLine("end import");
         WriteLine("");
     }
     catch (Exception ex)
     {
         WriteLine(ex.Message);
         throw ex;
     }
 }