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

@@ -251,7 +251,8 @@ namespace Umbraco.Web.Routing
// the first successful lookup, if any, will set this.Node, and may also set this.Template
// some lookups may implement caching
Trace.TraceInformation("{0}Begin lookup", tracePrefix);
_environment.Lookups.Any(lookup => lookup.LookupDocument(this));
var lookups = _environment.RouteLookups.GetLookups();
lookups.Any(lookup => lookup.LookupDocument(this));
Trace.TraceInformation("{0}End lookup, {1}", tracePrefix, (this.HasNode ? "a document was found" : "no document was found"));
// fixme - not handling umbracoRedirect