コード例 #1
0
 /// <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();
 }
コード例 #2
0
 /// <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);
 }