Пример #1
0
 /// <summary>
 /// Stops the scraping threads when rate limited
 /// </summary>
 public static void StopScraperThreads()
 {
     if (ScraperThreads.Count > 0)
     {
         foreach (Thread ScraperThread in ScraperThreads)
         {
             ScraperThread.Abort();
         }
         ScraperThreads.Clear();
     }
 }
Пример #2
0
 public MainThread(
     ILogger logger,
     CrawlerThread crawlerThread,
     ProposerThread proposerThread,
     ScraperThread scraperThread
     )
 {
     _logger         = logger;
     _crawlerThread  = crawlerThread;
     _proposerThread = proposerThread;
     _scraperThread  = scraperThread;
 }