using System;
using LightInject;
using Umbraco.Core.ObjectResolution;
namespace Umbraco.Web.Routing
{
///
/// Resolves the last chance IPublishedContentFinder object.
///
public sealed class ContentLastChanceFinderResolver : ContainerSingleObjectResolver
{
///
/// Initializes the resolver to use IoC
///
///
///
internal ContentLastChanceFinderResolver(IServiceContainer container, Type implementationType)
: base(container, implementationType)
{ }
///
/// 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 => Value;
}
}