private void OnPcScExceptionReceived(object s, PCSCException a) { var eventargs = new NfcEventArgs(); eventargs.Type = NfcEventType.Unknown; eventargs.Data = $"Error: {a.Message} ({a.SCardError.ToString()})"; PcScNfcEventReceived?.Invoke(this, eventargs); }
private static void MonitorException(object sender, PCSCException ex) { Log.Error("MONITORERROR,Monitor exited due an error" + SCardHelper.StringifyError(ex.SCardError)); }
void IReaderMonitor.OnMonitorException(PCSCException ex) { }
/// <summary> /// Throw card exception /// </summary> private void MonitorException(object sender, PCSCException ex) { throw ex; }
void MonitorException(object sender, PCSCException ex) { Log("Monitor exited due an error:"); Log(SCardHelper.StringifyError(ex.SCardError)); }
private void MonitorException(object sender, PCSCException ex) { EventCardException?.Invoke(SCardHelper.StringifyError(ex.SCardError)); Debug.WriteLine($"Monitor exited due an error:", "MonitorException"); Debug.WriteLine(SCardHelper.StringifyError(ex.SCardError), "MonitorException"); }
private static void MonitorException(object sender, PCSCException ex) { Console.WriteLine("Monitor exited due an error:"); Console.WriteLine(SCardHelper.StringifyError(ex.SCardError)); }
void monitorException(object sender, PCSCException ex) => tk1.Text += ex.Message;
private void Monitor_MonitorException(object sender, PCSCException exception) { ErrorMessage?.Invoke("Monitoring Error: " + exception.Message); }
private void MonitorException(object sender, PCSCException ex) { Console.WriteLine("Monitor exited due an error:"); }
private void MonitorExceptionHandler(object sender, PCSCException ex) { PcscService.logger.Error("PCSC Monitor exited due an error: " + SCardHelper.StringifyError(ex.SCardError)); }
private void MonitorException(object sender, PCSCException ex) { Console.WriteLine("Monitor exited due an error:", ex); cp.Invoke((MethodInvoker)(() => this.cp.DeviceErrored())); }