using Microsoft.Extensions.DependencyInjection; namespace Toolkit.Foundation; public interface IComponentFactory { IComponentHost? Create(string key, Action>? configurationDelegate = null, Action? componentDelegate = null, Action? servicesDelegate = null) where TComponent : IComponent where TConfiguration : class, new(); }