Created
February 16, 2017 20:41
-
-
Save MACastro987/faba3101584dc12615f77d2a99340d02 to your computer and use it in GitHub Desktop.
Download Task
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
public async Task<byte[]> Download() | |
{ | |
var httpClient = new HttpClient(); | |
var randomUri = UriManager.LoadRandomUri(); | |
Task<byte[]> contentsTask = httpClient.GetByteArrayAsync(randomUri); | |
return await contentsTask; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment