Exemplo n.º 1
0
 private static void HubAndSpoke()
 {
     FileWatchTimer          = new Timer(1000 * TimerTickSecs);
     FileWatchTimer.Elapsed += new ElapsedEventHandler(FileWatchTimerHubAndSpoke_Elapsed);
     ContinueLoop            = true;
     HubAndSpokeParser.Init(DBServerConnect);
     FileWatchTimer.Start();
     while (ContinueLoop)
     {
     }
 }
Exemplo n.º 2
0
 static void FileWatchTimerHubAndSpoke_Elapsed(object sender, ElapsedEventArgs e)
 {
     FileWatchTimer.Stop();
     if (File.Exists(DataDirectory + "stop.bln"))
     {
         ContinueLoop = false;
     }
     else
     {
         HubAndSpokeParser.Run(
             DataDirectory,
             DBServerConnect,
             UserName,
             ToUpperCase,
             SubtractYearLimit,
             AddYearLimit,
             TextLineWidth,
             ReportLineCountInterval,
             IsCSVPlusQuoteDelim,
             RemoveAllQuotesFromTextFiles);
     }
     FileWatchTimer.Start();
 }