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