Added ConfigurationBuilder

This commit is contained in:
TheXamlGuy
2024-10-08 09:43:09 +01:00
parent f47e3deee9
commit 55756b7093
6 changed files with 55 additions and 36 deletions
+3 -7
View File
@@ -2,13 +2,9 @@
public interface IComponent
{
IComponentBuilder Configure(string name,
Action<IComponentBuilder>? builderDelegate = null);
IComponentBuilder Configure(Action<IComponentBuilder>? configurationDelegate = null);
IComponentBuilder Configure(Action<IComponentBuilder>? builderDelegate = null);
IComponentBuilder Configure<TConfiguration>(string name,
TConfiguration? configuration = null,
Action<IComponentBuilder>? builderDelegate = null)
IComponentBuilder Configure<TConfiguration>(Action<IConfigurationBuilder<TConfiguration>>? configurationDelegate = null,
Action<IComponentBuilder>? componentDelegate = null)
where TConfiguration : class, new();
}