/// <summary> /// Performs application-defined tasks associated with freeing, releasing, or /// resetting unmanaged resources. /// </summary> public override void Dispose() { if (!_internalStore.IsPageFileStore) { ((IPersistentCacheStorage)this).SaveStorageState(); } _internalStore.Dispose(); base.Dispose(); }
/// <summary> /// Libera a instancia. /// </summary> /// <param name="disposing"></param> protected override void Dispose(bool disposing) { if (!_internalStore.IsPageFileStore) { ((IPersistentCacheStorage)this).SaveStorageState(); } _internalStore.Dispose(); base.Dispose(disposing); }