Exemplo n.º 1
0
        public void AsyncTwoExampleTest()
        {
            var ae = new AsyncExample();

            ae.RunTwoAsync();

            Console.WriteLine("This will complete first before the async tasks");
            Thread.Sleep(10000);
        }
Exemplo n.º 2
0
        public void SyncExampleTest()
        {
            var ae = new AsyncExample();

            ae.RunSync();

            Console.WriteLine("This will complete last");
            Thread.Sleep(10000);
        }