Example #1
0
        public static void TestAsync()
        {
            TestAsyncAwaiatService service = new TestAsyncAwaiatService();

            service.GetAsyncAwaiat();
            string strT = "awita";
        }
Example #2
0
        public static async Task TestAsyncAwaiat(int i)
        {
            TestAsyncAwaiatService service = new TestAsyncAwaiatService();

            Console.WriteLine(i.ToString() + "Process...");
            var t    = service.GetAsyncAwaiat();
            var bolT = await t;

            Console.Write("Result Value:" + bolT.ToString());
        }