CancelAsync() 공개 메소드

Cancels all pending operations in all queues.
public CancelAsync ( ) : void
리턴 void
        /// <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;
        }
예제 #2
0
 /// <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>();
 }