Add disposal
MODIFY
WalletWasabi/WabiSabi/Client/AliceClient.cs
WalletWasabi/WabiSabi/Client/AliceClient.cs
@@ -15,7 +15,7 @@ using WalletWasabi.WabiSabi.Models;
namespace WalletWasabi.WabiSabi.Client
{
- public class AliceClient : BackgroundService
+ public class AliceClient : BackgroundService, IAsyncDisposable
{
private Guid AliceId { get; }
private Guid RoundId { get; }
@@ -92,5 +92,10 @@ namespace WalletWasabi.WabiSabi.Client
return client;
}
+
+ public async ValueTask DisposeAsync()
+ {
+ return await StopAsync(CancellationToken.None).ConfigureAwait(false);
+ }
}
}

Add disposal