Improve ComponentBuilder

This commit is contained in:
TheXamlGuy
2024-09-29 20:55:37 +01:00
parent e321da7035
commit 9f00bac1dd
3 changed files with 12 additions and 16 deletions
+4 -2
View File
@@ -4,6 +4,10 @@ namespace Toolkit.Foundation;
public interface IComponentBuilder
{
string ConfigurationFile { get; set; }
string ContentRoot { get; set; }
IComponentBuilder AddConfiguration<TConfiguration>(Action<TConfiguration> configurationDelegate)
where TConfiguration : ComponentConfiguration, new();
@@ -17,6 +21,4 @@ public interface IComponentBuilder
IComponentBuilder AddServices(Action<IServiceCollection> configureDelegate);
IComponentHost Build();
void SetContentConfiguration(Action<ComponentContentConfiguration> configurationDelegate);
}