Add wallet profile image loading

This commit is contained in:
TheXamlGuy
2024-06-29 21:52:31 +01:00
parent 92a7fc7c42
commit 97c9405283
12 changed files with 85 additions and 36 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ public class WalletCollectionInitializer(IHostEnvironment environment,
IWalletHostCollection Wallets) :
IInitialization
{
public async Task Initialize()
public void Initialize()
{
foreach (string wallet in Directory.EnumerateDirectories(Path.Combine(environment.ContentRootPath, "Wallet")))
{
@@ -16,11 +16,11 @@ public class WalletCollectionInitializer(IHostEnvironment environment,
string section = $"Wallet:{name}";
if (componentFactory.Create<WalletComponent,
WalletConfiguration>(section)
WalletConfiguration>(section, new WalletConfiguration())
is IComponentHost host)
{
Wallets.Add(host);
await host.StartAsync();
host.Start();
}
}
}