public void StartPoll() { TracingHelper.Info("start reader cardid"); while (true) { reader.GetCode(Sing, Context, delegate(Exception ex, uint sn, object context) { if (ex != null) { TracingHelper.Error(ex, typeof(ReaderManager), "callBack return sn=" + sn); } if (sn > 0) { CallBack(null, sn, context); reader.Halt(); reader.Beep(80); } //else // CallBack(ex, sn, context); }); Thread.Sleep(pollTimeSpan); } }
public static void Beep(int time) { reader.Beep(time); }