Files
Umbraco-CMS/src/Umbraco.Core/DependencyInjection/IInjectCollectionBuilder.cs
2016-09-19 16:30:26 +02:00

18 lines
677 B
C#

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();
}
}