void _client_Error(object sender, ErrorArgs e)
 {
     Application.Current.Dispatcher.Invoke(() =>
         {
             StatusLabel.Content = e.ErrorMessage;
         });
 }
Beispiel #2
0
 static void client_Error(object sender, ErrorArgs e)
 {
     Console.WriteLine("Error {0}: {1}", e.ErrorCode, e.ErrorMessage);
 }
Beispiel #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));
 }
Beispiel #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);
     }
 }
Beispiel #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)));
 }
Beispiel #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))
     );
 }
Beispiel #7
0
 void _client_Error(object sender, ErrorArgs e)
 {
     ConnectionStatus = string.Format("{0} | {1}",
         _client.Connected ? "Connected" : "Disconnected",
         e.ErrorMessage);
 }