Fixed configuration to allow merge of new data into existing data

This commit is contained in:
TheXamlGuy
2024-10-03 16:35:34 +01:00
parent 855edf7d6d
commit 8136739372
5 changed files with 78 additions and 8 deletions
+1 -2
View File
@@ -16,7 +16,7 @@ public class ComponentFactory(IServiceProvider provider,
{
if (provider.GetRequiredService<TComponent>() is TComponent component)
{
IComponentBuilder builder = component.Configure(name, builderDelegate);
IComponentBuilder builder = component.Configure(name, configuration, builderDelegate);
builder.AddServices(services =>
{
@@ -42,7 +42,6 @@ public class ComponentFactory(IServiceProvider provider,
services.AddSingleton(new NamedComponent(name));
});
builder.AddConfiguration(name, configuration);
IComponentHost host = builder.Build();
scopes.Add(new ComponentScopeDescriptor(name,