Пример #1
0
        public void Dispose()
        {
            AppDomain.CurrentDomain.ProcessExit  -= ShouldDispose;
            AppDomain.CurrentDomain.DomainUnload -= ShouldDispose;

            storage.Dispose();
            search.Dispose();
            sigGenerator.Dispose();
            BufferPool.Dispose();
            metricsCounters.Dispose();
        }
Пример #2
0
        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();
        }