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