/// <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(); } }
public MainThread( ILogger logger, CrawlerThread crawlerThread, ProposerThread proposerThread, ScraperThread scraperThread ) { _logger = logger; _crawlerThread = crawlerThread; _proposerThread = proposerThread; _scraperThread = scraperThread; }