internal static void Cleanup() { RefCountedCache.Clean(); GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); }
internal static void Cleanup(bool disposeContext = true) { IsClosing = true; RefCountedCache.Clean(disposeContext); GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); }