Beispiel #1
0
        public testserver()
        {
            _service_list = new List<service.service>();

            module.test _module = new module.test();

            _testmoduleachieve = new testmoduleachieve();
            _module.ontest_func += _testmoduleachieve.test_func;

            _process = new juggle.process();
            _process.reg_module(_module);

            service.acceptnetworkservice _service = new service.acceptnetworkservice("127.0.0.1", 1234, _process);
            _service_list.Add(_service);

            service.juggleservice _juggleservice = new service.juggleservice();
            _juggleservice.add_process(_process);
            _service_list.Add(_juggleservice);
        }
Beispiel #2
0
        public testserver()
        {
            _service_list = new List <service.service>();

            module.test _module = new module.test();

            _testmoduleachieve   = new testmoduleachieve();
            _module.ontest_func += _testmoduleachieve.test_func;

            _process = new juggle.process();
            _process.reg_module(_module);

            service.acceptnetworkservice _service = new service.acceptnetworkservice("127.0.0.1", 1234, _process);
            _service_list.Add(_service);

            service.juggleservice _juggleservice = new service.juggleservice();
            _juggleservice.add_process(_process);
            _service_list.Add(_juggleservice);
        }