public void Dispose() { foreach (var cache in caches.Values) { LifecycleUtils.Dispose(cache); } caches.Clear(); }
public void Dispose() { lock (_caches) { LifecycleUtils.Dispose(_caches.Values); _caches.Clear(); } }