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
+3 -3
View File
@@ -9,14 +9,14 @@ public interface IComponentBuilder
string ContentRoot { get; set; }
IComponentBuilder AddConfiguration<TConfiguration>(Action<TConfiguration> configurationDelegate)
where TConfiguration : ComponentConfiguration, new();
where TConfiguration : class, new();
IComponentBuilder AddConfiguration<TConfiguration>(string section,
TConfiguration? configuration = null)
where TConfiguration : ComponentConfiguration, new();
where TConfiguration : class, new();
IComponentBuilder AddConfiguration<TConfiguration>(string section)
where TConfiguration : ComponentConfiguration, new();
where TConfiguration : class, new();
IComponentBuilder AddServices(Action<IServiceCollection> configureDelegate);