/// <summary> /// Release all resources. When called with the force flag false, releases all currently unused resources. /// </summary> public void ReleaseAllResources(bool force = false) { // We need to GC before calling native ResourceCache::ReleaseAllResources, to ensure all managed resource references are down // otherwise, the cache will hold onto the resource NativeCore.RunGC(); csi_Atomic_ResourceCache_ReleaseAllResources(nativeInstance, force); }
/// <summary> /// Runs a GC collection and waits for any finalizers /// </summary> public static void RunGC() { NativeCore.RunGC(); }