remove the hard requirement to use ComponentConfig
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user