public WeatherService(WeatherApiConfiguration weatherApiConfiguration, ILogger <WeatherService> logger) { _logger = logger; _weatherApiConfiguration = weatherApiConfiguration; weatherUrl = weatherUrl.Replace("@api@", _weatherApiConfiguration.ApiKey); }
public InsurwaveWeatherInfoService(IOptions <WeatherApiConfiguration> options) { _weatherApiConfiguration = options.Value; }