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