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(); } }
public void Dispose() { if (storage != null) { storage.Dispose(); } if (persistentSource != null) { persistentSource.Dispose(); } }
public void Dispose() { disposerLock.EnterWriteLock(); try { if (disposed) { return; } if (idleTimer != null) { idleTimer.Dispose(); } if (persistenceSource != null) { persistenceSource.Dispose(); } } finally { disposed = true; disposerLock.ExitWriteLock(); } }
public void Dispose() { persistentSource.Dispose(); }