void IEvent.Event() { if (itms.Count <= 0) { ErrorSetCONTINUE(); } else { byte[] it = itms.Peek(); Filter4 ftr = (Filter4)ServiceGetFilter(); try { ftr.LinkConnect(); ftr.SendBDY(it); } catch (Exception ex) { ftr.ErrorSet(ex); if (ftr.ErrorIsEXIT()) { ftr.ErrorReset(); return; } else { ftr.ErrorWrite(); } } itms.Dequeue(); } }
void IEvent.Event() { if (itms.Count <= 0) { ErrorSetCONTINUE(); } else { FilterItmS it = itms.Peek(); Filter4 ftr = (Filter4)ServiceGetFilter(); try { ftr.LinkConnect(); ftr.SendSTART(); ftr.SendBDY(it.bdy); if (it.isTransaction) { ftr.SendEND_AND_WAIT(it.token); } else { ftr.SendEND(it.token); } } catch (Exception ex) { ftr.ErrorSet(ex); if (ftr.ErrorIsEXIT()) { ftr.ErrorReset(); return; } else { ftr.ErrorWrite(); } } itms.Dequeue(); } }