Skip to content

Injecting ApiVersion as a parameter in a controller action method. #922

Discussion options

You must be logged in to vote

I still think this looks to be a strange setup, but I believe I was able to reproduce your scenario. Some of the core routing setup had to change starting in 6.0. There have been a couple edge case breaking behaviors that I haven't caught, but - in general - it's been for the better.

One of these edge cases is a version-neutral controller. It is necessary to have an API version to build out the route tree. Didn't realize there is a scenario where node could be built without all of the discovered endpoints. This leads to incomplete collation and an incomplete set of API versions, which can produce the behavior you're seeing. Version-neutral endpoints have a special mapping to ApiVersion.Ne…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@wertzui
Comment options

@commonsensesoftware
Comment options

@wertzui
Comment options

@commonsensesoftware
Comment options

@wertzui
Comment options

Answer selected by wertzui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants