write thumbnail to wallet store
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using Toolkit.Foundation;
|
||||
|
||||
namespace Wallet;
|
||||
|
||||
public class WalletHostFactory(IComponentFactory componentFactory) :
|
||||
IWalletHostFactory
|
||||
{
|
||||
public IComponentHost? Create(string key)
|
||||
{
|
||||
if (componentFactory.Create<WalletComponent, WalletConfiguration>($"Wallet:{key}",
|
||||
new WalletConfiguration()) is IComponentHost host)
|
||||
{
|
||||
return host;
|
||||
}
|
||||
|
||||
return default;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user