Пример #1
0
    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);
    }
Пример #2
0
 private static void MonitorException(object sender, PCSCException ex)
 {
     Log.Error("MONITORERROR,Monitor exited due an error" + SCardHelper.StringifyError(ex.SCardError));
 }
Пример #3
0
 void IReaderMonitor.OnMonitorException(PCSCException ex)
 {
 }
 /// <summary>
 /// Throw card exception
 /// </summary>
 private void MonitorException(object sender, PCSCException ex)
 {
     throw ex;
 }
Пример #5
0
 void MonitorException(object sender, PCSCException ex)
 {
     Log("Monitor exited due an error:");
     Log(SCardHelper.StringifyError(ex.SCardError));
 }
Пример #6
0
 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");
 }
Пример #7
0
 private static void MonitorException(object sender, PCSCException ex)
 {
     Console.WriteLine("Monitor exited due an error:");
     Console.WriteLine(SCardHelper.StringifyError(ex.SCardError));
 }
Пример #8
0
 void monitorException(object sender, PCSCException ex) => tk1.Text += ex.Message;
Пример #9
0
 private void Monitor_MonitorException(object sender, PCSCException exception)
 {
     ErrorMessage?.Invoke("Monitoring Error: " + exception.Message);
 }
Пример #10
0
 private void MonitorException(object sender, PCSCException ex)
 {
     Console.WriteLine("Monitor exited due an error:");
 }
Пример #11
0
 private void MonitorExceptionHandler(object sender, PCSCException ex)
 {
     PcscService.logger.Error("PCSC Monitor exited due an error: " + SCardHelper.StringifyError(ex.SCardError));
 }
Пример #12
0
 private void MonitorException(object sender, PCSCException ex)
 {
     Console.WriteLine("Monitor exited due an error:", ex);
     cp.Invoke((MethodInvoker)(() => this.cp.DeviceErrored()));
 }