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