Chaining Tasks in csharp with success and fault handler
问题 Edit See the title "Problem" at the end within my question to crack this question down. Coming from nodejs where we could chain promises, in C# I'm seeing Async Tasks almost comparable. Here's my attempt. Edit - I can't mark my uber level caller methods as async as a dll based library is calling it Caller object public void DoSomething(MyRequest request) { Delegate.Job1(request) .ContinueWith(Delegate.Job2) .ContinueWith(Fault, TaskContinuationOptions.OnlyOnFaulted) .ContinueWith(Result); }