示例#1
0
        internal virtual void OnCardDisconnected(object sender, WatcherCardEventArgs e)
        {
            Logger.TraceEvent(TraceEventType.Verbose, 0, "Cardreader: Save invocation of CardDisconnected");
            Logger.Flush();

            CardDisconnected.SafeInvoke(this, new CardreaderEventArgs((string)null));
        }
示例#2
0
        internal virtual void OnCardConnected(object sender, WatcherCardEventArgs e)
        {
            var card = new ContactlessCard(e.Card);

            Logger.TraceEvent(TraceEventType.Verbose, 0, "Cardreader: Save invocation of CardConnected");
            Logger.Flush();

            CardConnected.SafeInvoke(this, new CardreaderEventArgs(card, e.Card.CardreaderName));
        }