Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Uncaught OperationCancelledException when shutting down IHostedService - C#
C
C#
•
16mo ago
•
52 replies
SilverShade
Uncaught OperationCancelledException when shutting down IHostedService
Is there a way to detect that OperationCancelledException was thrown specifically due to application shutdown
(e
.g
. pressing
"stop
" button in IDE
)
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Next page
Similar Threads
SQLite proper disposal when shutting down the app
C
C# / help
11mo ago
"Application started" after "Application is shutting down"
C
C# / help
3y ago
✅ Using a scoped service within an IHostedService
C
C# / help
3y ago