Files
Toolkit2/Toolkit.Foundation/IComponentFactory.cs
T
2024-09-30 19:42:15 +01:00

13 lines
438 B
C#

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