public WebCrawlerService(IWebContentRetrievalService webContentRetrievalService,
                          ILinksExtractionService linksExtractionService)
 {
     this.webContentRetrievalService = webContentRetrievalService;
     this.linksExtractionService     = linksExtractionService;
     QueueEmptyWaitInterval          = TimeSpan.FromMilliseconds(QUEUE_EMPTY_WAIT_TIMEOUT);
 }
示例#2
0
 public CrawlingController(IWebContentRetrievalService webContentRetrievalService,
                           ILinksExtractionService linksExtractionService,
                           IWebCrawlerService webCrawlerService)
 {
     this.webContentRetrievalService = webContentRetrievalService;
     this.linksExtractionService     = linksExtractionService;
     this.webCrawlerService          = webCrawlerService;
 }