/// <summary> /// Dispose off underlying cache(s) /// </summary> /// <returns>true if object are disposed because they are no longer referenced, false otherwise</returns> public static bool DisposeCacheInstance() { if (--_refCount == 0) { _container.Dispose(); return(true); } return(false); }