cosmetic & doc

This commit is contained in:
sgay
2012-07-27 14:06:41 -02:00
parent 74dd444506
commit 83f76ed4a4
4 changed files with 48 additions and 24 deletions

View File

@@ -202,7 +202,7 @@ namespace Umbraco.Web.Routing
// the first successful resolver, if any, will set this.Node, and may also set this.Template
// some lookups may implement caching
Trace.TraceInformation("{0}Begin resolvers", tracePrefix);
var lookups = RoutingContext.DocumentLookupsResolver.GetDocumentLookups;
var lookups = RoutingContext.DocumentLookupsResolver.DocumentLookups;
lookups.Any(lookup => lookup.TrySetDocument(this));
Trace.TraceInformation("{0}End resolvers, {1}", tracePrefix, (this.HasNode ? "a document was found" : "no document was found"));
@@ -243,7 +243,7 @@ namespace Umbraco.Web.Routing
Trace.TraceInformation("{0}No document, try last chance lookup", tracePrefix);
// if it fails then give up, there isn't much more that we can do
var lastChance = RoutingContext.DocumentLookupsResolver.RequestDocumentLastChanceResolver;
var lastChance = RoutingContext.DocumentLookupsResolver.DocumentLastChanceLookup;
if (lastChance == null || !lastChance.TrySetDocument(this))
{
Trace.TraceInformation("{0}Failed to find a document, give up", tracePrefix);