Improved json support

This commit is contained in:
TheXamlGuy
2024-07-15 21:14:30 +01:00
parent 46d8ea6d6c
commit f38a3d6aad
34 changed files with 143 additions and 130 deletions
+4 -9
View File
@@ -1,19 +1,14 @@
using Microsoft.EntityFrameworkCore;
using Toolkit.Foundation;
using Wallet.Data;
using static Microsoft.EntityFrameworkCore.DbLoggerCategory.Database;
using Toolkit.Foundation;
namespace Wallet;
public class CloseWalletHandler(IDecoratorService<WalletConnection> walletConnectionDecorator,
IDbContextFactory<WalletContext> dbContextFactory) :
public class CloseWalletHandler(IDecoratorService<WalletConnection> walletConnectionDecorator) :
IHandler<CloseEventArgs<Wallet>, bool>
{
public async Task<bool> Handle(CloseEventArgs<Wallet> args,
public Task<bool> Handle(CloseEventArgs<Wallet> args,
CancellationToken cancellationToken)
{
walletConnectionDecorator.Set(null);
return true;
return Task.FromResult(true);
}
}