Last active
July 4, 2018 21:34
-
-
Save NMZivkovic/3198452453d39fb3d66a2de718f3e58b 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
public class WebAccess | |
{ | |
public async Task<int> AccessRubiksCodeAsync() | |
{ | |
HttpClient client = new HttpClient(); | |
var getContent = client.GetStringAsync("http://rubikscode.net"); | |
LogToConsole("Yay!"); | |
string content = await getContent; | |
return content.Length; | |
} | |
private void LogToConsole(string message) | |
{ | |
Console.WriteLine("At the moment I am actually listening to the new NIN song..."); | |
Console.WriteLine("It is pretty cool...like something of David Bowie's - Blackstar."); | |
Console.WriteLine("message"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
message
parameter in theLogToConsole
method is not being used because it would appear that quotation marks were erroneously placed around it in the last call toConsole.WriteLine
on line 20.