Codemaid
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user