コード例 #1
0
 public void Dispose()
 {
     disposerLock.EnterWriteLock();
     try
     {
         if (disposed)
         {
             return;
         }
         disposed = true;
         current.Dispose();
         if (documentCacher != null)
         {
             documentCacher.Dispose();
         }
         if (idleTimer != null)
         {
             idleTimer.Dispose();
         }
         if (persistenceSource != null)
         {
             persistenceSource.Dispose();
         }
         if (tableStroage != null)
         {
             tableStroage.Dispose();
         }
     }
     finally
     {
         disposerLock.ExitWriteLock();
     }
 }
コード例 #2
0
 public void Dispose()
 {
     if (storage != null)
     {
         storage.Dispose();
     }
     if (persistentSource != null)
     {
         persistentSource.Dispose();
     }
 }
コード例 #3
0
 public void Dispose()
 {
     disposerLock.EnterWriteLock();
     try
     {
         if (disposed)
         {
             return;
         }
         if (idleTimer != null)
         {
             idleTimer.Dispose();
         }
         if (persistenceSource != null)
         {
             persistenceSource.Dispose();
         }
     }
     finally
     {
         disposed = true;
         disposerLock.ExitWriteLock();
     }
 }
コード例 #4
0
 public void Dispose()
 {
     persistentSource.Dispose();
 }