Пример #1
0
 public FaultService(IHttpClientFactory httpClientFactory, IOptions <WeatherServiceSettings> configuration, IGetForecast getForecast)
 {
     _httpClientFactory = httpClientFactory;
     _configuration     = configuration.Value;
     _getForecast       = getForecast;
 }
Пример #2
0
 public WeatherController([FromServices] IGetCurrentWeather currentWeatherService,
                          [FromServices] IGetForecast forecastService)
 {
     _currentWeatherService = currentWeatherService;
     _forecastService       = forecastService;
 }