/// <summary> /// Perform a cleanup pass. /// </summary> internal static bool Cleanup() { if (!BaseAppContextSwitches.EnableCleanupSchedulingImprovements) { return(CurrentWeakEventTable.Purge(false)); } else { return(CurrentWeakEventTable._cleanupHelper.DoCleanup(forceCleanup: true)); } }
/// <summary> /// Perform a cleanup pass. /// </summary> internal static bool Cleanup() { return(CurrentWeakEventTable.Purge(false)); }