Skip to content

Commit c32143a

Browse files
authored
Fix up ConsumeScopedServiceHostedService.StopAsync impl to call base (#19955)
1 parent 0fec42b commit c32143a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aspnetcore/fundamentals/host/hosted-services/samples/3.x/BackgroundTasksSample/Services/ConsumeScopedServiceHostedService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public override async Task StopAsync(CancellationToken stoppingToken)
4949
_logger.LogInformation(
5050
"Consume Scoped Service Hosted Service is stopping.");
5151

52-
await Task.CompletedTask;
52+
await base.StopAsync(stoppingToken);
5353
}
5454
}
5555
#endregion

0 commit comments

Comments
 (0)