Files
Walleby/Wallet/WalletFactory.cs
T
2024-06-09 14:00:36 +01:00

17 lines
409 B
C#

using Toolkit.Foundation;
namespace Wallet;
public class WalletFactory(IComponentFactory componentFactory) :
IWalletFactory
{
public IComponentHost? Create(string name)
{
if (componentFactory.Create<IWalletComponent, WalletConfiguration>($"Wallet:{name}", new WalletConfiguration()) is IComponentHost host)
{
return host;
}
return default;
}
}