Files
Toolkit2/Toolkit.Foundation/IComponentFactory.cs
T
TheXamlGuy 928969f39f Fixes
2024-09-27 21:25:36 +01:00

13 lines
455 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 : ComponentConfiguration, new();
}