Files
Umbraco-CMS/src/Umbraco.Core/Strings/UrlSegmentProviderResolver.cs
2013-02-19 06:27:13 -01:00

38 lines
1.5 KiB
C#
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using Umbraco.Core.ObjectResolution;
namespace Umbraco.Core.Strings
{
/// <summary>
/// Resolves IUrlSegmentProvider objects.
/// </summary>
internal sealed class UrlSegmentProviderResolver : ManyObjectsResolverBase<UrlSegmentProviderResolver, IUrlSegmentProvider>
{
/// <summary>
/// Initializes a new instance of the <see cref="UrlSegmentProviderResolver"/> 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 UrlSegmentProviderResolver(IEnumerable<Type> providerTypes)
: base(providerTypes)
{ }
/// <summary>
/// Initializes a new instance of the <see cref="UrlSegmentProviderResolver"/> 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 UrlSegmentProviderResolver(params Type[] providerTypes)
: base(providerTypes)
{ }
/// <summary>
/// Gets the providers.
/// </summary>
public IEnumerable<IUrlSegmentProvider> Providers
{
get { return Values; }
}
}
}