Files
Walleby/Wallet/CloseWalletHandler.cs
T
2024-07-15 21:14:30 +01:00

15 lines
392 B
C#

using Toolkit.Foundation;
namespace Wallet;
public class CloseWalletHandler(IDecoratorService<WalletConnection> walletConnectionDecorator) :
IHandler<CloseEventArgs<Wallet>, bool>
{
public Task<bool> Handle(CloseEventArgs<Wallet> args,
CancellationToken cancellationToken)
{
walletConnectionDecorator.Set(null);
return Task.FromResult(true);
}
}