示例#1
0
 public GiosAirQualityService(ILogger <GiosAirQualityService> logger, ICyanoHttpClient client, IMemoryCache cache) :
     base(logger, client, "https://api.gios.gov.pl/pjp-api/rest/")
 {
     this.cache = cache;
 }
 public AirQualityService(ILogger logger, ICyanoHttpClient client, string baseUrl)
 {
     this.logger  = logger;
     this.client  = client;
     this.baseUrl = baseUrl;
 }
示例#3
0
 public ArsoService(ILogger <ArsoService> logger, ICyanoHttpClient client, IMemoryCache cache)
     : base(logger, client, "http://www.arso.gov.si/xml/zrak/")
 {
     this.cache = cache;
 }
示例#4
0
 public SachsenAirQualityService(ILogger <ArsoService> logger, ICyanoHttpClient client, IMemoryCache cache)
     : base(logger, client, "https://geoportal.umwelt.sachsen.de/arcgis/services/luft/luftmessdaten/MapServer/WFSServer")
 {
     this.cache = cache;
 }
示例#5
0
 public AqicnAirQualityService(ILogger <ArsoService> logger, ICyanoHttpClient client, IMemoryCache cache)
     : base(logger, client, "https://api.waqi.info/feed/")
 {
     this.cache = cache;
     url        = $"dresden/?token={AqicnCredentials.Instance.Token}";
 }