MinimalApis.Extensions
MinimalApis.Extensions copied to clipboard
DefaultBinder: Use the HttpContext.RequestServices ServiceProvider within RequestDelegateFactoryOptions
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.