public static async Task Run() { var x = new Examples(); await x.Example1().ConfigureAwait(false); await x.Example2().ConfigureAwait(false); await x.Example3().ConfigureAwait(false); await x.Example4().ConfigureAwait(false); }
static async Task Main(string[] args) { try { await Examples.Run(); Console.WriteLine("Done!"); } catch (Exception x) { Console.WriteLine(x); } Console.ReadLine(); }