Exemple #1
0
 private void RunShutdownTasks()
 {
     try
     {
         _agentWriter.FlushAndCloseAsync().Wait();
     }
     catch (Exception ex)
     {
         Log.Error(ex, "Error flushing traces on shutdown.");
     }
 }
Exemple #2
0
        private void RunShutdownTasks()
        {
            try
            {
                _agentWriter.FlushAndCloseAsync().Wait();
            }
            catch (Exception ex)
            {
                Log.SafeLogError(ex, "Error flushing traces on shutdown.");
            }

            try
            {
                TracingProcessManager.StopProcesses();
            }
            catch (Exception ex)
            {
                Log.SafeLogError(ex, "Error stopping sub processes on shutdown.");
            }
        }
Exemple #3
0
 internal async Task FlushAsync()
 {
     await _agentWriter.FlushAndCloseAsync();
 }
 private void CurrentDomain_ProcessExit(object sender, EventArgs e)
 {
     _agentWriter.FlushAndCloseAsync().Wait();
 }