Exemplo n.º 1
0
    static void Main(string[] args)
    {
        AsyncTest a    = new AsyncTest();
        Task      task = a.MethodAsync();

        Console.WriteLine("Waiting in Main thread");
        task.Wait();
    }