void _client_Error(object sender, ErrorArgs e) { Application.Current.Dispatcher.Invoke(() => { StatusLabel.Content = e.ErrorMessage; }); }
static void client_Error(object sender, ErrorArgs e) { Console.WriteLine("Error {0}: {1}", e.ErrorCode, e.ErrorMessage); }
void client_Error(object sender, ErrorArgs e) { Log(LogLevel.Error, string.Format("QDMSClient error in data update job {0}: {1}", _jobName, e.ErrorMessage)); }
/// <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); } }
/// <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))); }
/// <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)) ); }
void _client_Error(object sender, ErrorArgs e) { ConnectionStatus = string.Format("{0} | {1}", _client.Connected ? "Connected" : "Disconnected", e.ErrorMessage); }