Skip to content

What happens if the implementation of IHostedService.StopAsync method does not respond to cancellation requests ? #23742

Answered by Tratcher
EnricoMassone asked this question in General
Discussion options

You must be logged in to vote

Yes, this could prevent the host from shutting down when requested. I'd rethink how much work you do during shutdown if it's likely to take more than 5 seconds.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@EnricoMassone
Comment options

@Tratcher
Comment options

Answer selected by EnricoMassone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants