Added singleton for managing ILookups collection, allows for adding/removing/inserting at runtime/startup

This commit is contained in:
shannon@ShandemVaio
2012-07-20 23:42:55 +06:00
parent 6c872e8a65
commit 8f278bcaa5
8 changed files with 118 additions and 16 deletions

View File

@@ -42,7 +42,7 @@ namespace Umbraco.Web
var niceUrls = new NiceUrlResolver(contentStore, umbracoContext, RoutesCache.Current.GetProvider());
//create the RoutingEnvironment (one per http request as it relies on the umbraco context!)
var routingEnvironment = new RoutingEnvironment(
ApplicationContext.Current.Plugins.ResolveLookups().ToArray(),
RouteLookups.Current,
new LookupFor404(contentStore),
contentStore);
// create the new document request which will cleanup the uri once and for all