This commit is contained in:
pavelbannov 2023-09-14 17:38:24 +03:00
parent e419d5dbff
commit 12f4e8d180

View File

@ -50,7 +50,7 @@ public class NotifySenderService : BackgroundService
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
{
await foreach (var request in _channelReader.ReadAllAsync())
await foreach (var request in _channelReader.ReadAllAsync(stoppingToken))
{
await using var scope = _serviceScopeFactory.CreateAsyncScope();
foreach (var action in _notifyEngine.Actions)