public ExchangeratesAPIProvider(IOptions <ExchangeratesApiOptions> options, IHttpClientFactory httpClientFactory, ILogger <ExchangeratesAPIProvider> logger)
 {
     _config            = options.Value;
     _httpClientFactory = httpClientFactory;
     _logger            = logger;
     LoadSupportedCurrencies().Wait();
 }
 public EcbExchangeRatesApi(ILogger <EcbExchangeRatesApi> logger, IOptions <ExchangeratesApiOptions> options, HttpClient httpClient)
 {
     _logger     = logger;
     _options    = options.Value;
     _httpClient = httpClient;
     _httpClient.DefaultRequestHeaders.Accept.Clear();
     _httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
     _serializer = new JsonSerializer();
 }