Enabled ability to order containers and the ability to insert new containers to their correct order

This commit is contained in:
TheXamlGuy
2024-05-12 18:28:13 +01:00
parent 5292896e13
commit 9eafcc55d0
2 changed files with 6 additions and 3 deletions
+5 -2
View File
@@ -10,13 +10,16 @@ public class ComponentHost(IServiceProvider services,
{
public IServiceProvider Services => services;
public ComponentConfiguration? Configuration =>
Services.GetService<ComponentConfiguration>();
public void Dispose()
{
}
public TConfiguration? GetConfiguration<TConfiguration>() where TConfiguration : ComponentConfiguration
{
return Services.GetService<TConfiguration>();
}
public async Task StartAsync(CancellationToken cancellationToken = default)
{
foreach (IInitializer initializer in initializers)