Files
Umbraco-CMS/src/Umbraco.Web/Routing/ContentFinderResolver.cs

39 lines
1.4 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using Umbraco.Core.ObjectResolution;
namespace Umbraco.Web.Routing
{
/// <summary>
2013-02-19 06:37:24 -01:00
/// Resolves IPublishedContentFinder objects.
/// </summary>
2013-01-24 08:51:27 -01:00
public sealed class ContentFinderResolver : ManyObjectsResolverBase<ContentFinderResolver, IContentFinder>
{
/// <summary>
2013-02-02 10:22:19 -01:00
/// Initializes a new instance of the <see cref="ContentFinderResolver"/> class with an initial list of finder types.
/// </summary>
/// <param name="finders">The list of finder types</param>
/// <remarks>The resolver is created by the <c>WebBootManager</c> and thus the constructor remains internal.</remarks>
2013-02-02 10:22:19 -01:00
internal ContentFinderResolver(IEnumerable<Type> finders)
: base(finders)
{ }
2013-02-19 06:37:24 -01:00
/// <summary>
/// Initializes a new instance of the <see cref="ContentFinderResolver"/> class with an initial list of finder types.
/// </summary>
/// <param name="finders">The list of finder types</param>
/// <remarks>The resolver is created by the <c>WebBootManager</c> and thus the constructor remains internal.</remarks>
internal ContentFinderResolver(params Type[] finders)
: base(finders)
{ }
/// <summary>
/// Gets the finders.
/// </summary>
2013-01-18 13:20:08 -01:00
public IEnumerable<IContentFinder> Finders
{
get { return Values; }
}
}
}