using Microsoft.Extensions.DependencyInjection; namespace Toolkit.Foundation; public interface IComponentFactory { IComponentHost? Create(string name, TConfiguration? configuration = null, Action? builderDelegate = null, Action? servicesDelegate = null) where TComponent : IComponent where TConfiguration : ComponentConfiguration, new(); }