Improve sidebar nav

This commit is contained in:
TheXamlGuy
2024-06-23 17:25:59 +01:00
parent 574a9d0983
commit 590bc61d70
6 changed files with 45 additions and 17 deletions
+2 -1
View File
@@ -8,7 +8,7 @@ public class ComponentFactory(IServiceProvider provider,
IComponentFactory
{
public IComponentHost? Create<TComponent, TConfiguration>(string name,
TConfiguration configuration,
TConfiguration? configuration = null,
Action<IServiceCollection>? servicesDelegate = null)
where TComponent : IComponent
where TConfiguration : ComponentConfiguration, new()
@@ -16,6 +16,7 @@ public class ComponentFactory(IServiceProvider provider,
if (provider.GetRequiredService<TComponent>() is TComponent component)
{
IComponentBuilder builder = component.Create();
builder.AddServices(services =>
{
services.AddTransient(_ =>