[Breaking change]: SystemEvents.EventsThreadShutdown Obsolete with SYSLIB0059 #43563
Open
1 of 3 tasks
Labels
breaking-change
Indicates a .NET Core breaking change
doc-idea
Indicates issues that are suggestions for new topics [org][type][category]
Pri1
High priority, do before Pri2 and Pri3
⌚ Not Triaged
Not triaged
Description
After https://github.com/dotnet/runtime/pull/108489/files
SystemEvents.EventsThreadShutdown
callbacks will no longer be called before the process exits. It is marked as obsolete withSYSLIB0059
Version
.NET 10 Preview 1
Previous behavior
SystemEvents.EventsThreadShutdown
callbacks would be called before the process exits.New behavior
SystemEvents.EventsThreadShutdown
callbacks are no longer called before the process exits.Type of breaking change
Reason for change
SystemEvents' previous shutdown handling could block the finalizer thread during app shutdown. To avoid blocking finalizer thread, SystemEvents no longer has shutdown handling consequentially meaning that SystemEvents.EventsThreadShutdown is no longer called.
Recommended action
Recommendation is if users had been using this is to hook to AppDomain.ProcessExit instead.
Feature area
Core .NET libraries
Affected APIs
SystemEvents.EventsThreadShutdown
The text was updated successfully, but these errors were encountered: