Skip to content

Instantly share code, notes, and snippets.

@dimitrispaxinos
Created November 21, 2015 13:57
Show Gist options
  • Save dimitrispaxinos/0643800624482462e808 to your computer and use it in GitHub Desktop.
Save dimitrispaxinos/0643800624482462e808 to your computer and use it in GitHub Desktop.
// Use of the "new" keyword in order to be able to override non virtual methods
public async new Task<HttpResponseMessage> GetAsync(Uri requestUri)
{
var res = await _httpClient.GetAsync(requestUri);
LogResponseMessage(requestUri, res, "GET");
return res;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment