I am writing some code that checks that my resources are properly cleaned up.
When the application is shutdown, resources are not cleaned up, which is fine. However, thi
just add this to your App.cs file
public bool IsShuttingDown { get; private set; } public new void Shutdown(int exitCode = 0) { this.IsShuttingDown = true; base.Shutdown(exitCode); }