using Microsoft.Extensions.DependencyInjection; namespace Toolkit.Foundation { public interface ITemplateBuilder { IReadOnlyCollection Descriptors { get; } ITemplateBuilder Add(string name, ServiceLifetime lifetime = ServiceLifetime.Transient); ITemplateBuilder Add(ServiceLifetime lifetime = ServiceLifetime.Transient); } }