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