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

                _disposedValue = true;
            }
        }
Esempio n. 6
0
 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();
 }
Esempio n. 8
0
 public void Dispose()
 {
     _kustoQueryProvider.Dispose();
 }
Esempio n. 9
0
 public void Dispose()
 {
     _kustoQueryProvider?.Dispose();
     _monitor?.Dispose();
 }