static void Main(string[] argv) { MyServer srv = MqFactoryS <MyServer> .Add().New(); try { srv.LinkCreate(argv); srv.ProcessEvent(MqS.WAIT.FOREVER); } catch (Exception ex) { srv.ErrorSet(ex); } srv.Exit(); }
public static void Main(string[] argv) { Filter6 srv = MqFactoryS <Filter6> .Add("transFilter").New(); try { srv.ConfigSetIgnoreExit(true); srv.LinkCreate(argv); srv.ProcessEvent(MqS.WAIT.FOREVER); } catch (Exception ex) { srv.ErrorSet(ex); } srv.Exit(); }
// ######################################################################## static void Main(string[] args) { Server srv = MqFactoryS <Server> .Add("server").New(); try { srv.LinkCreate(args); srv.LogC("test", 1, "this is the log test\n"); srv.ProcessEvent(MqS.WAIT.FOREVER); } catch (Exception ex) { srv.ErrorSet(ex); } finally { srv.Exit(); } }
public static void Main(String[] argv) { Filter2 srv = MqFactoryS <Filter2> .Add("filter").New(); try { srv.LinkCreate(argv); srv.ServiceCreate("+FTR", srv.FTR); srv.ServiceProxy("+EOF"); srv.ProcessEvent(MqS.WAIT.FOREVER); } catch (Exception ex) { srv.ErrorSet(ex); } srv.Exit(); }
static void Main(string[] argv) { manfilter srv = MqFactoryS <manfilter> .Add("ManFilter").New(); try { srv.ConfigSetIsServer(true); srv.LinkCreate(argv); srv.ServiceCreate("+FTR", srv.FTR); srv.ServiceProxy("+EOF"); srv.ProcessEvent(MqS.WAIT.FOREVER); } catch (Exception ex) { srv.ErrorSet(ex); } srv.Exit(); }
public static void Main(string[] argv) { MqFactoryS <F1> .Add(); MqFactoryS <F2> .Add(); MqFactoryS <F3> .Add(); MqS srv = MqFactoryS <MqS> .Call(argv[0]); try { srv.LinkCreate(argv); srv.ProcessEvent(MqS.WAIT.FOREVER); } catch (Exception ex) { srv.ErrorSet(ex); } srv.Exit(); }