void _client_Error(object sender, ErrorArgs e)
 {
     Application.Current.Dispatcher.Invoke(() =>
         {
             StatusLabel.Content = e.ErrorMessage;
         });
 }
Example #2
0
 static void client_Error(object sender, ErrorArgs e)
 {
     Console.WriteLine("Error {0}: {1}", e.ErrorCode, e.ErrorMessage);
 }
Example #3
0
 void client_Error(object sender, ErrorArgs e)
 {
     Log(LogLevel.Error, string.Format("QDMSClient error in data update job {0}: {1}", _jobName, e.ErrorMessage));
 }
Example #4
0
 /// <summary>
 /// Any errors coming up from the broker are added to a list of errors to be emailed at the end of the job
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void _broker_Error(object sender, ErrorArgs e)
 {
     if(_settings.Errors)
     {
         _errors.Add(e.ErrorMessage);
     }
 }
Example #5
0
 /// <summary>
 /// When one of the data sources has some sort of error, it raises an event which is handled by this method.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void s_Error(object sender, ErrorArgs e)
 {
     Application.Current.Dispatcher.InvokeAsync(() => _logger.Log(LogLevel.Error, string.Format("RTB: {0} - {1}", e.ErrorCode, e.ErrorMessage)));
 }
Example #6
0
 /// <summary>
 /// Fires when any of the underlying data sources raise their error event.
 /// </summary>
 private void DatasourceError(object sender, ErrorArgs e)
 {
     Application.Current.Dispatcher.InvokeAsync(() =>
         Log(LogLevel.Error, string.Format("HDB: {0} - {1}", e.ErrorCode, e.ErrorMessage))
     );
 }
Example #7
0
File: QDMS.cs Project: QANTau/QPAS
 void _client_Error(object sender, ErrorArgs e)
 {
     ConnectionStatus = string.Format("{0} | {1}",
         _client.Connected ? "Connected" : "Disconnected",
         e.ErrorMessage);
 }