using Umbraco.Core.ObjectResolution; namespace Umbraco.Web.Routing { /// /// Resolves the last chance IPublishedContentFinder object. /// public sealed class ContentLastChanceFinderResolver : SingleObjectResolverBase { /// /// Initializes a new instance of the class with no finder. /// /// The resolver is created by the WebBootManager and thus the constructor remains internal. internal ContentLastChanceFinderResolver() : base(true) { } /// /// Initializes a new instance of the class with an instance of a finder. /// /// An instance of a finder. /// The resolver is created by the WebBootManager and thus the constructor remains internal. internal ContentLastChanceFinderResolver(IContentFinder finder) : base(finder, true) { } /// /// Sets the last chance finder. /// /// The finder. /// For developers, at application startup. public void SetFinder(IContentFinder finder) { Value = finder; } /// /// Gets the last chance finder. /// public IContentFinder Finder { get { return Value; } } } }