public FaultService(IHttpClientFactory httpClientFactory, IOptions <WeatherServiceSettings> configuration, IGetForecast getForecast) { _httpClientFactory = httpClientFactory; _configuration = configuration.Value; _getForecast = getForecast; }
public WeatherController([FromServices] IGetCurrentWeather currentWeatherService, [FromServices] IGetForecast forecastService) { _currentWeatherService = currentWeatherService; _forecastService = forecastService; }