Skip to content

Instantly share code, notes, and snippets.

@angelobelchior
Last active September 2, 2019 20:57
Show Gist options
  • Save angelobelchior/41e7bbd4a3357d550ebe8d4491f7825e to your computer and use it in GitHub Desktop.
Save angelobelchior/41e7bbd4a3357d550ebe8d4491f7825e to your computer and use it in GitHub Desktop.
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