How to Design Fluent Async Operations?
问题 Async operations do not seem to play well with fluent interfaces which I prefer to code in. How can Asynchrony be combined with Fluent? Sample: I have two methods that previously returned a MyEntity but do not play well when change to Async. After I asyncfy them I have to await the result of the tasks, but I have to do that for each step added: MyEntity Xx = await(await FirstStepAsync()).SecondStepAsync(); There has to be a better way. 回答1: Some of the answers that deal with continuations are