You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check whether the call into UseHttpCacheHeaders is situated between UseRouting and UseEndpoints - allows for throwing a nice Exception to inform users of this.
As per Javier's answer on the feature request: for now, use the alternative and check if we can resolve a publicly exposed type, like EndpointDataSource.
Answer isn't sufficient: checking the registered type only checks whether a service is registered on a container, NOT the order in which middleware is added to the request pipeline...
leave in the check for the required services for stability reasons in v6
Check whether the call into UseHttpCacheHeaders is situated between UseRouting and UseEndpoints - allows for throwing a nice Exception to inform users of this.
Cfr: https://github.com/dotnet/aspnetcore/blob/main/src/Http/Routing/src/Builder/EndpointRoutingApplicationBuilderExtensions.cs#L135
The text was updated successfully, but these errors were encountered: