/// <summary> /// When this task is done, the connection to kusto is disposed /// </summary> protected override void CleanUp(GetKustoBuildInput input, GetKustoBuildOutput output) { // dispose the connection here if (m_queryProvider != null) { m_queryProvider.Dispose(); } }
private static void DisposeQueryClient(object state) { if (_kustoQueryClient != null) { Log.Info("Disposing kusto query client"); _kustoQueryClient.Dispose(); _kustoQueryClient = null; } }
/// <inheritdoc /> protected override void CleanUp(BuildQueueToMachineMapInput input, BuildQueueToMachineMapOutput output) { // dispose the connection here if (m_queryProvider != null) { m_queryProvider.Dispose(); } // and the writer if (m_writer != null) { m_writer.Close(); } }
/// <inheritdoc /> protected override void CleanUp(DownloadMonthlyQueueDataInput input, DownloadMonthlyQueueDataOutput output) { // dispose the connection here if (m_queryProvider != null) { m_queryProvider.Dispose(); } // and the writer if (m_writer != null) { m_writer.Close(); } }
protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { _scheduler?.Dispose(); _schedulerLogWriter?.Dispose(); _alertNotifier?.Dispose(); _kustoIngestClient?.Dispose(); _cslQueryProvider?.Dispose(); } _disposedValue = true; } }
public void Dispose() { _client.Dispose(); }
/// <summary> /// Dispose of all the resources we created. Note that if this hangs and you're calling from a UI thread, you might /// have better luck spinning up the engine in a spearate thread. /// </summary> public void Dispose() { _queryClient?.Dispose(); _adminClient?.Dispose(); }
public void Dispose() { _kustoQueryProvider.Dispose(); }
public void Dispose() { _kustoQueryProvider?.Dispose(); _monitor?.Dispose(); }