This commit is contained in:
TheXamlGuy
2024-04-30 20:46:47 +01:00
parent 2a4194ee22
commit 81f266d8c4
22 changed files with 296 additions and 162 deletions
+18
View File
@@ -0,0 +1,18 @@
using Toolkit.Foundation;
namespace Bitvault;
public class VaultComponentFactory(IComponentFactory componentFactory) :
IVaultComponentFactory
{
public IComponentHost? Create(string name)
{
if (componentFactory.Create<IVaultComponent, VaultConfiguration>($"Vault:{name}",
new VaultConfiguration { Name = name }) is IComponentHost host)
{
return host;
}
return default;
}
}