Files
Walleby/Wallet/WalletFactory.cs
T
2024-06-29 11:23:44 +01:00

18 lines
418 B
C#

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