Simplify and optimize async parameters in RequestDelegateFactory
- Avoid object[] allocation for single BindAsync call
- Remove redundant state and logic
- Cleanup some names and nullability annotations
- Split RequestDelegateFactory.Log class into its own RequestDelegateFactory.Log.cs file
As you're taking the big refactor-hammer to things as it is, I wonder if maybe it's also worth moving the other nested types into their own partial files too to get the main file down to under 2k LoC?
@halter73 Thoughts on this PR? If I recall, it still needs a hearty rebase to get it in an up-to-date state.
There's also some goodness in here that is probably better to split up into a separate PR like:
Cleanup some names and nullability annotations Split RequestDelegateFactory.Log class into its own RequestDelegateFactory.Log.cs file
Thanks for the reminder. I'll work on rebasing this after I update my MapIdentityApi<TUser>() PR (#47414) in response to API review.