-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Check for duplicate endpoint names on startup #36353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
bb22369
to
c6f3fa6
Compare
c6f3fa6
to
35c0785
Compare
This is technically not a breaking change. The policy has always been that duplicate endpoint names are not allowed in an application. The subtlety is that in MVC, route names map to endpoint names and we already have logic that checks to see if duplicate route names exist. There's also pre-existing logic in MVC that checks for duplicate endpoint names and throws an IOE. That logic was being superseded in the route name check.
So, TLDR, we are throwing this exception in a new place but it's not a breaking change in the sense that it is not introducing a new assumption. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/aspnetcore/actions/runs/1231642715 |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Fixes #35436