You can do any task block by simply clicking .Result
:
string response = client.GetStringAsync(...).Result;
However, if this works in the user interface thread, you should not do this. Locking on the user interface thread is not very pleasant. Declare asynchrony.
source share