Files
Umbraco-CMS/src/Umbraco.Core/DependencyInjection/IInjectCollectionBuilder.cs

18 lines
677 B
C#
Raw Normal View History

2016-08-16 10:00:14 +02:00
namespace Umbraco.Core.DependencyInjection
{
/// <summary>
/// Represents an injected collection builder.
/// </summary>
/// <typeparam name="TCollection">The type of the collection.</typeparam>
/// <typeparam name="TItem">The type of the items.</typeparam>
public interface IInjectCollectionBuilder<out TCollection, TItem>
where TCollection : IInjectCollection<TItem>
{
/// <summary>
/// Gets a collection.
/// </summary>
/// <returns>A collection.</returns>
/// <remarks>The lifetime of the collection depends on how the builder was registered.</remarks>
TCollection GetCollection();
}
}