Exemplo n.º 1
0
        public KinoAfishaScrapper(IConfiguration configuration,
                                  IEventImageScrapper eventImageScrapper,
                                  ScrapingBrowser browser)
        {
            _browser            = browser;
            _eventImageScrapper = eventImageScrapper;
            _kinoAfishaUri      = configuration["KinoAfishaUri"];

            if (string.IsNullOrWhiteSpace(_kinoAfishaUri))
            {
                throw new ConfigurationErrorsException("KinoAfishaUri entry can not be found, please check appsettings");
            }
        }
Exemplo n.º 2
0
        public KoncertUAScrapper(IConfiguration configuration,
                                 ScrapingBrowser browser,
                                 IEventImageScrapper eventImageScrapper,
                                 ISingletSessionScrapper singletSessionScrapper,
                                 IMultipleSessionsScrapper multipleSessionsScrapper)
        {
            _browser                  = browser;
            _eventImageScrapper       = eventImageScrapper;
            _singleSessionScrapper    = singletSessionScrapper;
            _multipleSessionsScrapper = multipleSessionsScrapper;

            _koncertUaUri = configuration["KoncertUAUri"];

            if (string.IsNullOrWhiteSpace(_koncertUaUri))
            {
                throw new ConfigurationErrorsException("KoncertUAUri entry can not be found, please check appsettings");
            }
        }