/// <summary> /// Call this from Application_End in your Global.asax.cs file. Besides this call, there should be no other code in the method. /// </summary> public static void CleanUpStatics() { if (!ewlInitialized) { return; } if (!GlobalInitializationOps.SecondaryInitFailed) { EwfApp.ExecuteWithBasicExceptionHandling( () => { if (appInitializer != null) { appInitializer.CleanUpStatics(); } }, false, false); } GlobalInitializationOps.CleanUpStatics(); if (!EwfApp.FrameworkInitialized) { var waitHandle = new ManualResetEvent(false); initFailureUnloadTimer.Dispose(waitHandle); waitHandle.WaitOne(); } }
/// <summary> /// Call this from the TearDown method in your NUnit initializer. Besides this call, there should be no other code in the method. /// </summary> public static void CleanUpStatics() { if (appInitializer != null) { appInitializer.CleanUpStatics(); } GlobalInitializationOps.CleanUpStatics(); }
/// <summary> /// Call this from the TearDown method in your NUnit initializer. Besides this call, there should be no other code in the method. /// </summary> public static void CleanUpStatics() { if (appInitializer != null) { appInitializer.CleanUpStatics(); } AppTools.CleanUp(); }
/// <summary> /// Performs cleanup activities so the application can be shut down. /// </summary> public static void CleanUpStatics() { try { globalInitializer?.CleanUpStatics(); AppMemoryCache.CleanUp(); } catch (Exception e) { TelemetryStatics.ReportError("An exception occurred during application cleanup:", e); } }
/// <summary> /// Call this from Application_Exit. Besides this call, there should be no other code in the method. /// </summary> public static void CleanUpStatics() { exceptionHandlerEnabled = false; if (!GlobalInitializationOps.SecondaryInitFailed) { TelemetryStatics.ExecuteBlockWithStandardExceptionHandling( () => { if (appInitializer != null) { appInitializer.CleanUpStatics(); } }); } GlobalInitializationOps.CleanUpStatics(); }