Enable components to create new components

This commit is contained in:
TheXamlGuy
2024-10-07 14:42:04 +01:00
parent 4d24b43280
commit ae8d62ceb2
2 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -20,6 +20,12 @@ public class ComponentFactory(IServiceProvider provider,
builder.AddServices(services =>
{
services.AddTransient(_ =>
provider.GetRequiredService<IProxyServiceCollection<IComponentBuilder>>());
services.AddTransient(_ =>
provider.GetRequiredService<IComponentFactory>());
services.AddTransient(_ =>
provider.GetRequiredService<IProxyService<IPublisher>>());
@@ -31,7 +37,7 @@ public class ComponentFactory(IServiceProvider provider,
services.AddScoped(_ =>
provider.GetRequiredService<INavigationRegionProvider>());
services.AddScoped(_ =>
provider.GetRequiredService<IComponentScopeCollection>());