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 Move less-commonly used types out of .Rendering 2015-09-16 23:52:29 -07:00
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 Remove Microsoft.AspNet.Server.IIS from test Websites 2015-10-24 08:04:00 -07:00
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.