예제 #1
0
 void _client_Error(object sender, ErrorArgs e)
 {
     Application.Current.Dispatcher.Invoke(() =>
         {
             StatusLabel.Content = e.ErrorMessage;
         });
 }
예제 #2
0
파일: Program.cs 프로젝트: leo90skk/qdms
 static void client_Error(object sender, ErrorArgs e)
 {
     Console.WriteLine("Error {0}: {1}", e.ErrorCode, e.ErrorMessage);
 }
예제 #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));
 }
예제 #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);
     }
 }
예제 #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)));
 }
예제 #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))
     );
 }
예제 #7
0
파일: QDMS.cs 프로젝트: QANTau/QPAS
 void _client_Error(object sender, ErrorArgs e)
 {
     ConnectionStatus = string.Format("{0} | {1}",
         _client.Connected ? "Connected" : "Disconnected",
         e.ErrorMessage);
 }