I am writing code that checks that my resources are cleaned up correctly.
When the application closes, the resources are not cleared, and this is normal. However, this makes my verification code fail.
Is there a way to find out if the WPF application is in the process of shutting down? - Something like Application.Current.IsShuttingDown?
user380719
source share