aspnetcore/test/WebSites/UrlHelperWebSite
Ryan Nowak 9fc3a80056 Remove IActionContextAccessor from UrlHelper
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.
2015-12-02 17:09:43 -08:00
..
Content
Controllers
Views
wwwroot
AppOptions.cs
CustomUrlHelper.cs Remove IActionContextAccessor from UrlHelper 2015-12-02 17:09:43 -08:00
CustomUrlHelperFactory.cs Remove IActionContextAccessor from UrlHelper 2015-12-02 17:09:43 -08:00
Startup.cs Remove IActionContextAccessor from UrlHelper 2015-12-02 17:09:43 -08:00
UrlHelperWebSite.xproj
project.json
readme.md

readme.md

UrlHelperWebSite

This web site illustrates how to register a CustomURLHelper which can based on configuration, generate content urls pointing to local or a CDN server and generate lower case urls.