Files
Toolkit2/Toolkit.Foundation/IComponentFactory.cs
T
2024-04-29 21:42:04 +01:00

11 lines
380 B
C#

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