Skip to content

Exit background on fail#59

Merged
ognjenkatic merged 5 commits into
masterfrom
feat/master/exit-background-on-fail
Oct 7, 2022
Merged

Exit background on fail#59
ognjenkatic merged 5 commits into
masterfrom
feat/master/exit-background-on-fail

Conversation

@ognjenkatic

Copy link
Copy Markdown
Collaborator

This PR makes the background service terminate the host application on error. It also fixes the incorrect usage of cancellation tokens. Previously we only cancelled if the start token was cancelled.

The implementation is more in line with how https://github.com/aspnet/Hosting/blob/master/src/Microsoft.Extensions.Hosting.Abstractions/BackgroundService.cs works.

@ognjenkatic ognjenkatic requested a review from boma96 October 6, 2022 19:37
@ognjenkatic ognjenkatic merged commit be7687a into master Oct 7, 2022
@ognjenkatic ognjenkatic deleted the feat/master/exit-background-on-fail branch October 7, 2022 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants