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);
public RequestBuilder(ExchangeRatesConfiguration configuration) { this.configuration = configuration; }