/// <summary> /// Clears the thumbnail cache. /// </summary> public void Clear() { foreach (CacheItem item in thumbCache.Values) { if (item != null) { item.Dispose(); } } thumbCache.Clear(); if (rendererItem != null) { rendererItem.Dispose(); } rendererItem = null; bw.CancelAsync(); MemoryUsed = 0; MemoryUsedByRemoved = 0; removedItems.Clear(); processing.Clear(); processingRendererItem = Guid.Empty; }
/// <summary> /// Clears the cache. /// </summary> public void Clear() { bw.CancelAsync(); processing.Clear(); }
/// <summary> /// Clears the cache. /// </summary> public void Clear() { bw.CancelAsync(); // [IG_CHANGE] Don't keep the fully allocated dict. from before, create an empty one processing = new ConcurrentDictionary <Guid, bool>(); }