This commit is contained in:
TheXamlGuy
2024-05-24 08:21:49 +01:00
parent e82fa8d05f
commit 12d1392207
90 changed files with 146 additions and 168 deletions
+3 -3
View File
@@ -2,12 +2,12 @@
namespace Bitvault;
public class ContainerFactory(IComponentFactory componentFactory) :
public class ContainerFactory(IComponentFactory componentFactory) :
IContainerFactory
{
public IComponentHost? Create(string name)
{
if (componentFactory.Create<IContainerComponent, ContainerConfiguration>($"Vault:{name}",
if (componentFactory.Create<IContainerComponent, ContainerConfiguration>($"Vault:{name}",
new ContainerConfiguration { Name = name }) is IComponentHost host)
{
return host;
@@ -15,4 +15,4 @@ public class ContainerFactory(IComponentFactory componentFactory) :
return default;
}
}
}