© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Uncaught OperationCancelledException when shutting down IHostedService - C#
C
C#
•
17mo 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.
62,470
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
13mo ago
"Application started" after "Application is shutting down"
C
C# / help
3y ago
Uncaught exception
C
C# / help
2y ago