示例#1
0
        private static async Task AsyncExample()
        {
            var asyncApp = new Async.App();

            var resultWithoutAwait = await asyncApp.ComputeAsync();

            Console.WriteLine(resultWithoutAwait.StatusCode);

            var resultWithAwait = await asyncApp.AwaitComputeAsync();

            Console.WriteLine(resultWithAwait.StatusCode);
        }
示例#2
0
文件: App.g.i.cs 项目: zfaisal/XAML
 public static void Main()
 {
     Async.App app = new Async.App();
     app.InitializeComponent();
     app.Run();
 }