Example #1
0
    public static async Task MethodAsync()
    {
        TaskExt.Log("B1");
        await SomeClass.SomeAsyncApi().ConfigureAwait(false);

        TaskExt.Log("B2");
    }
Example #2
0
    public static async Task <int> SomeAsyncApi()
    {
        TaskExt.Log("X1");
        await Task.Delay(1000).WithCompletionLog(step: "X1.5").ConfigureAwait(false);

        TaskExt.Log("X2");
        return(42);
    }