AsyncOverSimplified.Program.SimpleMainAsync C# (CSharp) Méthode

SimpleMainAsync() static private méthode

Runs all 3 variations of the Simple code to ensure they all have the same result
static private SimpleMainAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task
        static async Task SimpleMainAsync()
        {
            var worker = new SimpleAsyncWorker();
            await worker.DoWork();
            await worker.DoWorkExplicitTasks();
            await worker.DoWorkWithoutAwait();
        }