protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { _scheduler?.Dispose(); if (_schedulerLogWriter is IDisposable schedulerLogWriter) { schedulerLogWriter?.Dispose(); } if (_alertNotifier is IDisposable alertNofier) { alertNofier?.Dispose(); } _kustoIngestClient?.Dispose(); foreach (var(_, resources) in _environmentResources) { resources.Dispose(); } } _disposedValue = true; } }
protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { _scheduler?.Dispose(); if (_schedulerLogWriter is IDisposable schedulerLogWriter) { schedulerLogWriter?.Dispose(); } if (_alertNotifier is IDisposable alertNofier) { alertNofier?.Dispose(); } _kustoIngestClient?.Dispose(); _kustoClient?.Dispose(); } _disposedValue = true; } }
protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { _scheduler?.Dispose(); _schedulerLogWriter?.Dispose(); _alertNotifier?.Dispose(); _kustoIngestClient?.Dispose(); _cslQueryProvider?.Dispose(); } _disposedValue = true; } }