Last active
September 2, 2019 20:57
-
-
Save angelobelchior/41e7bbd4a3357d550ebe8d4491f7825e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected async Task<Result<T>> Get<T>(string url) | |
{ | |
return await this._asyncRetryPolicy.ExecuteAsync(async () => | |
{ | |
var response = await this._httpClient.GetAsync(url); | |
return await this.GetRequestContent<T>(response); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment