Beispiel #1
0
 private void Scrape()
 {
     _logger.Info("Scraping.");
     if (_scraper == null)
     {
         _scraper = new Logic.NatGeoScraper(
             new HtmlDocumentProvider(),
             new ImageRepository(new NatGeoContext()), new PhotoOfTheDayParser(),
             _logger);
         _scraper.Scrape();
         _scraper = null;
     }
 }
Beispiel #2
0
 private void Scrape()
 {
     _logger.Info("Scraping.");
     if (_scraper == null)
     {
         _scraper = new Logic.NatGeoScraper(
             new HtmlDocumentProvider(),
             new ImageRepository(new NatGeoContext()), new PhotoOfTheDayParser(),
             _logger);
         _scraper.Scrape();
         _scraper = null;
     }
 }