public static void TestAsync() { TestAsyncAwaiatService service = new TestAsyncAwaiatService(); service.GetAsyncAwaiat(); string strT = "awita"; }
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()); }