Example #1
0
        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;
            }
        }
Example #2
0
        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;
            }
        }
Example #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (!_disposedValue)
            {
                if (disposing)
                {
                    _scheduler?.Dispose();
                    _schedulerLogWriter?.Dispose();
                    _alertNotifier?.Dispose();
                    _kustoIngestClient?.Dispose();
                    _cslQueryProvider?.Dispose();
                }

                _disposedValue = true;
            }
        }