remove the hard requirement to use ComponentConfig

This commit is contained in:
TheXamlGuy
2024-09-30 19:42:15 +01:00
parent 70f1908c0f
commit a9ae9b1d8f
7 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ public class ComponentFactory(IServiceProvider provider,
Action<IServiceCollection>? servicesDelegate = null)
where TComponent : IComponent
where TConfiguration :
ComponentConfiguration, new()
class, new()
{
if (provider.GetRequiredService<TComponent>() is TComponent component)
{