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

41 lines
1.5 KiB
C#
Raw Normal View History

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