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(); } }
public static void Main(string[] argv) { Filter4 srv = new Filter4(); try { srv.ConfigSetIgnoreExit(true); srv.LinkCreate(argv); srv.ProcessEvent(MqS.WAIT.FOREVER); } catch (Exception ex) { srv.ErrorSet (ex); } srv.Exit(); }
public static void Main(string[] argv) { MqFactoryS<Filter4>.Default("transFilter"); Filter4 srv = new Filter4(null); try { srv.ConfigSetIgnoreExit(true); srv.LinkCreate(argv); srv.ProcessEvent(MqS.WAIT.FOREVER); } catch (Exception ex) { srv.ErrorSet (ex); } srv.Exit(); }
public static void Main(string[] argv) { Filter4 srv = new Filter4(); try { srv.ConfigSetIgnoreExit(true); srv.LinkCreate(argv); srv.ProcessEvent(MqS.WAIT.FOREVER); } catch (Exception ex) { srv.ErrorSet(ex); } srv.Exit(); }
public static void Main(string[] argv) { MqFactoryS <Filter4> .Default("transFilter"); Filter4 srv = new Filter4(null); try { srv.ConfigSetIgnoreExit(true); srv.LinkCreate(argv); srv.ProcessEvent(MqS.WAIT.FOREVER); } catch (Exception ex) { srv.ErrorSet(ex); } srv.Exit(); }
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(); } }