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

Closed Issue: Don't require route name in Web API self host [509]

$
0
0
When you register a route in Web API self host you must pass a non-null name. The same when you try to generate URLs with System.Web.Http.Routing.UrlHelper. This is enforced in System.Web.Http.HttpRouteCollection, Add() and GetVirtualPath() methods. In web host however you can use null names, just like in MVC.

What are the reasons for requiring names in self host? you are:
- coupling controller code (URL generation) with route registration.
- being inconsistent with web host and MVC.

Comments: Please let me know if this is blocking you.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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