private async Task <T> GetExchangeRatesAsync <T>(ExchangeRatesConfiguration configuration)
        {
            var request = this.GetRequestString(configuration);

            this.Log(request);

            var response = await this.GetResponse(request);

            response.EnsureSuccessStatusCode();

            var content = await response.Content.ReadAsStringAsync();

            return(this.Deserialize <T>(content));
        }
 private string GetRequestString(ExchangeRatesConfiguration configuration)
 => new RequestBuilder(configuration).Build(_apiAccessKey);
Beispiel #3
0
 public RequestBuilder(ExchangeRatesConfiguration configuration)
 {
     this.configuration = configuration;
 }