static void Main(string[] args) { AsyncTest a = new AsyncTest(); Task task = a.MethodAsync(); Console.WriteLine("Waiting in Main thread"); task.Wait(); }
static void Main(string[] args) { AsyncTest a = new AsyncTest(); Task task = a.MethodAsync(); Console.WriteLine("Waiting in Main thread"); task.Wait(); }