public WeatherService(IOptions <WeatherServiceConfig> options)
 {
     this.config = options.Value;
     _client     = new HttpClient
     {
         BaseAddress = new Uri(config.BaseUrl)
     };
 }
Beispiel #2
0
 public WeatherService(IOptions <WeatherServiceConfig> option)
 {
     this.apiKey = option.Value;
 }