Example #1
0
        public static void Main(string[] argv)
        {
            Filter1 srv = MqFactoryS <Filter1> .New("filter");

            try {
                srv.LinkCreate(argv);
                srv.ServiceCreate("+FTR", srv.FTR);
                srv.ServiceCreate("+EOF", srv.EOF);
                srv.ProcessEvent(MqS.WAIT.FOREVER);
            } catch (Exception ex) {
                srv.ErrorSet(ex);
            }
            srv.Exit();
        }
Example #2
0
        public static void Main(string[] argv)
        {
            Filter1 srv = new Filter1();

            try {
                srv.ConfigSetName("filter");
                srv.ConfigSetIsServer(true);
                srv.LinkCreate(argv);
                srv.ServiceCreate("+FTR", srv.FTR);
                srv.ServiceCreate("+EOF", srv.EOF);
                srv.ProcessEvent(MqS.WAIT.FOREVER);
            } catch (Exception ex) {
                srv.ErrorSet(ex);
            }
            srv.Exit();
        }