void IEvent.Event() { if (itms.Count > 0) { FilterItmS it = itms.Peek(); try { MqS ftr = ServiceGetFilter(); ftr.SendSTART(); ftr.SendBDY(it.bdy); if (it.isTransaction) { ftr.SendEND_AND_WAIT(it.token); } else { ftr.SendEND(it.token); } } catch (Exception ex) { ErrorSet(ex); ErrorPrint(); ErrorReset(); } finally { itms.Dequeue(); } } else { ErrorSetCONTINUE(); } }
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(); } }