Ejemplo n.º 1
0
        /// <summary>
        /// Clears query caches for all typed queries.
        /// </summary>
        public static void ClearCaches()
        {
            InternalExtensions.ClearCaches();

            foreach (var cleaner in CacheCleaners)
            {
                cleaner();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Clears query caches for all typed queries.
        /// </summary>
        public static void ClearCaches()
        {
            InternalExtensions.ClearCaches();

            // ConcurrentBag has thread safe enumerator
            foreach (var cleaner in CacheCleaners)
            {
                cleaner();
            }
        }