public void Dispose() { AppDomain.CurrentDomain.ProcessExit -= ShouldDispose; AppDomain.CurrentDomain.DomainUnload -= ShouldDispose; storage.Dispose(); search.Dispose(); sigGenerator.Dispose(); BufferPool.Dispose(); metricsCounters.Dispose(); }
public void Dispose() { if (disposed) { return; } AppDomain.CurrentDomain.ProcessExit -= ShouldDispose; AppDomain.CurrentDomain.DomainUnload -= ShouldDispose; disposed = true; synchronizationTask.Dispose(); storage.Dispose(); search.Dispose(); sigGenerator.Dispose(); BufferPool.Dispose(); metricsCounters.Dispose(); }