using System;
using System.Net.Http;
using System.Threading.Tasks;
namespace ConsoleApp4
{
class Program
static string endPoint =
"https://backendhol.azurewebsites.net/api/something";
static void Main(string[] args)
Console.WriteLine(1);
var foo = Level1();
Console.WriteLine(2);
Console.WriteLine(foo);
}
static string Level1()
Console.WriteLine(3);
var level2Task = Level2();
Console.WriteLine(4);
var foo = level2Task.Result;
Console.WriteLine(5);
return foo;
static async Task<string> Level2()
Console.WriteLine(6);
var foo = await new HttpClient()
.GetStringAsync(endPoint);
Console.WriteLine(7);