This change removes the IActionContextAccessor as a dependency of UrlHelper, and shifts UrlHelper to use a factory pattern. Consumers of IUrlHelper should create an instance using the factory when needed. This is the last part of MVC that has a dependency on IActionContext accessor. As part of this change we no longer register it by default, and treat it as an optional component. |
||
|---|---|---|
| .. | ||
| Controllers | ||
| wwwroot | ||
| Startup.cs | ||
| TestResponseGenerator.cs | ||
| VersionAttribute.cs | ||
| VersionDeleteAttribute.cs | ||
| VersionGetAttribute.cs | ||
| VersionPostAttribute.cs | ||
| VersionPutAttribute.cs | ||
| VersionRangeValidator.cs | ||
| VersionRoute.cs | ||
| VersioningWebSite.xproj | ||
| project.json | ||
| readme.md | ||
readme.md
VersioningWebSite
This web site illustrates how to implement a versioning policy using action constraints.