Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Feature: Controller name requirements should be relaxed with attribute routing [1665]

$
0
0
The requirement to end the name of your controller with 'Controller' should be relaxed when using attribute routing, since you can unambiguously determine the name of the controller class. The unfortunate side-effect is that all the routes on the incorrectly named controller get silently ignored.

This affects me in Web API, but I expect the limitation is probably also present for MVC controllers with attribute routing.
Comments: We could also consider providing an error if we don't plan to respect the attribute (though this might be interesting to implement because of how controller selection might still get customized).

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>