public Scraper(IScraperQueue scraperQueue, ICrawlLogger crawlLogger, AsyncManualResetEvent manualResetEvent,
                CancellationToken cancellationToken)
 {
     _scraperQueue      = scraperQueue ?? throw new ArgumentNullException(nameof(scraperQueue));
     _crawlLogger       = crawlLogger ?? throw new ArgumentNullException(nameof(crawlLogger));
     _manualResetEvent  = manualResetEvent ?? throw new ArgumentNullException(nameof(manualResetEvent));
     _cancellationToken = cancellationToken;
 }
 public ScraperFactory(IScraperQueue scraperQueue, ICrawlLogger crawlLogger)
 {
     _scraperQueue = scraperQueue ?? throw new ArgumentNullException(nameof(scraperQueue));
     _crawlLogger  = crawlLogger ?? throw new ArgumentNullException(nameof(crawlLogger));
 }