Esempio n. 1
0
 public CitiesController(IOptionsMonitor <AppSettingsOptions> appSettings, IMapper mapper,
                         ICountryApiClient countryApiClient, IWeatherApiClient weatherApiClient, ICityRepository cityRepository)
 {
     _appSettings      = appSettings ?? throw new ArgumentNullException(nameof(appSettings));
     _mapper           = mapper ?? throw new ArgumentNullException(nameof(mapper));
     _countryApiClient = countryApiClient ?? throw new ArgumentNullException(nameof(countryApiClient));
     _weatherApiClient = weatherApiClient ?? throw new ArgumentNullException(nameof(weatherApiClient));
     _cityRepository   = cityRepository ?? throw new ArgumentNullException(nameof(cityRepository));
 }
 public ConfigureCountryOptions(ICountryApiClient countryApiClient, ILogger <ConfigureCountryOptions> logger)
 {
     _countryApiClient = countryApiClient;
     _logger           = logger;
 }