public UpcomingPassScraper(ILogger <UpcomingPassScraper> logger, IOptions <SiteConfiguration> siteConfig, IUpcomingPassRepository upcomingPassRepository, NoaaWebDavFileProvider fileProvider)
 {
     _logger                 = logger;
     _siteConfig             = siteConfig.Value;
     _upcomingPassRepository = upcomingPassRepository;
     _fileProvider           = fileProvider;
 }
        public SatellitePassScraper(ILogger <SatellitePassScraper> logger, IOptions <SiteConfiguration> siteConfig, ISatellitePassRepository satellitePassRepository, NoaaWebDavFileProvider fileProvider)
        {
            _logger     = logger;
            _siteConfig = siteConfig.Value;
            _satellitePassRepository = satellitePassRepository;
            _fileProvider            = fileProvider;

            _scrapeCounter = Metrics.CreateCounter(
                "noaa_pass_scrape_total",
                "total number of times satellite passes were scraped",
                new CounterConfiguration
            {
                LabelNames = new string[] { "result" }
            });
            _scrapeDurationCounter = Metrics.CreateCounter(
                "noaa_pass_scrape_seconds_total",
                "total time satellite passes were scraped",
                new CounterConfiguration
            {
                LabelNames = new string[] { }
            });
            _passCounter = Metrics.CreateCounter(
                "noaa_pass_scrape_passes_total",
                "total number of scraped satellite passes",
                new CounterConfiguration
            {
                LabelNames = new string[] { "sat" }
            });
            _passDurationCounter = Metrics.CreateCounter(
                "noaa_pass_scrape_passes_seconds_total",
                "total duration of scraped satellite passes",
                new CounterConfiguration
            {
                LabelNames = new string[] { "sat" }
            });
        }