MinimalApis.Extensions icon indicating copy to clipboard operation
MinimalApis.Extensions copied to clipboard

DefaultBinder: Use the HttpContext.RequestServices ServiceProvider within RequestDelegateFactoryOptions

Open ansteele opened this issue 7 months ago • 0 comments

Currently the DefaultBinder uses a null options value for its call to RequestDelegateFactory.Create.

This means none of the services available within the application are made available to the binder, including the applied JsonTypeInfoResolver. The end result is the JsonOptions set for all other binds aren't applied to binds done via DefaultBinder (e.g. IncludeFields). I'd imagine that any IService parameters also aren't resolved correctly.

ansteele avatar Jul 18 '24 10:07 ansteele