Last active
December 23, 2016 10:09
-
-
Save JoanM/6b9605f297f31dfa9ce193adaf40ae6b to your computer and use it in GitHub Desktop.
Bynder Curl with ConfigureAwait
This file contains hidden or 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
public async Task<string> DoCurlAsync() | |
{ | |
using (var httpClient = new HttpClient()) | |
using (var httpResponse = await httpClient.GetAsync("https://www.bynder.com").ConfigureAwait(false)) | |
{ | |
return await httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment