Пример #1
0
 public void Dispose()
 {
     foreach (var cache in caches.Values)
     {
         LifecycleUtils.Dispose(cache);
     }
     caches.Clear();
 }
Пример #2
0
        public void Dispose()
        {
            lock (_caches)
            {
                LifecycleUtils.Dispose(_caches.Values);

                _caches.Clear();
            }
        }