Example #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();
        }
Example #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();
		}
Example #3
0
 public void Dispose()
 {
     shouldNotifyOnWork.Dispose();
     if (DocsPerSecCounter != null)
     {
         DocsPerSecCounter.Dispose();
     }
     if (ReducedPerSecCounter != null)
     {
         ReducedPerSecCounter.Dispose();
     }
     if (IndexedPerSecCounter != null)
     {
         IndexedPerSecCounter.Dispose();
     }
     cancellationTokenSource.Dispose();
 }