Skip to content

Commit

Permalink
Fixed net6 build
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Jan 5, 2024
1 parent 9d48737 commit aaa405b
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/Foundatio.Extensions.Hosting/Jobs/HostedJobService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,9 @@ private async Task ExecuteAsync(CancellationToken stoppingToken)
var runner = new JobRunner(_jobOptions, _loggerFactory);

try
/* Unmerged change from project 'Foundatio.Extensions.Hosting(net8.0)'
Before:
_stoppingCts.Cancel();
After:
await _stoppingCts.CancelAsync();
*/

{
await runner.RunAsync(stoppingToken).AnyContext();
await _stoppingCts.CancelAsync();
_stoppingCts.Cancel();
}
finally
{
Expand All @@ -80,15 +73,8 @@ public async Task StopAsync(CancellationToken cancellationToken)
return;

try
/* Unmerged change from project 'Foundatio.Extensions.Hosting(net8.0)'
Before:
_stoppingCts.Cancel();
After:
await _stoppingCts.CancelAsync();
*/

{
await _stoppingCts.CancelAsync();
_stoppingCts.Cancel();
}
finally
{
Expand Down

0 comments on commit aaa405b

Please sign in to comment.