Beispiel #1
0
 internal void Start(System.Threading.CancellationToken token)
 {
     while (true)
     {
         try
         {
             QT.Moduls.CrawlerProduct.TaskRefreshCheckConfig task = new QT.Moduls.CrawlerProduct.TaskRefreshCheckConfig();
             task.Start();
             Thread.Sleep(100000);
             log.Info("Wait to 100 s to run next!");
         }
         catch (OperationCanceledException ex02)
         {
             return;
         }
         catch (Exception ex01)
         {
             log.Error(ex01);
             Thread.Sleep(10000);
         }
     }
 }
Beispiel #2
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            TaskRefreshCheckConfig task = new TaskRefreshCheckConfig();

            task.Start();
        }