Exemplo n.º 1
0
        public void Dispose()
        {
            disposed = true;

            shouldNotifyOnWork.Dispose();

            if (DocsPerSecCounter != null)
            {
                DocsPerSecCounter.Dispose();
            }
            if (ReducedPerSecCounter != null)
            {
                ReducedPerSecCounter.Dispose();
            }
            if (RequestsPerSecCounter != null)
            {
                RequestsPerSecCounter.Dispose();
            }
            if (ConcurrentRequestsCounter != null)
            {
                ConcurrentRequestsCounter.Dispose();
            }
            if (IndexedPerSecCounter != null)
            {
                IndexedPerSecCounter.Dispose();
            }
            cancellationTokenSource.Dispose();
        }
Exemplo n.º 2
0
		public void Dispose()
		{
			shouldNotifyOnWork.Dispose();
			if (DocsPerSecCounter != null)
				DocsPerSecCounter.Dispose();
			if (ReducedPerSecCounter != null)
				ReducedPerSecCounter.Dispose();
			if (RequestsPerSecCounter != null)
				RequestsPerSecCounter.Dispose();
			if (ConcurrentRequestsCounter != null)
				ConcurrentRequestsCounter.Dispose();
			if (IndexedPerSecCounter != null)
				IndexedPerSecCounter.Dispose();
			cancellationTokenSource.Dispose();
		}