示例#1
0
        public void call_logic_mothed(String svr_uuid, String module_name, String func_name, params object[] _argvs)
        {
            ArrayList _argvs_list = new ArrayList();

            foreach (var o in _argvs)
            {
                _argvs_list.Add(o);
            }

            if (lgoicproxys.ContainsKey(svr_uuid))
            {
                lgoicproxys[svr_uuid].call_logic(module_name, func_name, _argvs_list);
            }
            else
            {
                if (logics.ContainsKey(svr_uuid))
                {
                    var ip   = logics[svr_uuid].Item1;
                    var port = logics[svr_uuid].Item2;

                    var ch = _logic_conn.connect(ip, port);

                    var _proxy     = new logicproxy(ch);
                    var callbackid = System.Guid.NewGuid().ToString();
                    _proxy.reg_logic(callbackid);

                    var _argvs_ = new ArrayList();
                    _argvs_.Add(svr_uuid);
                    _argvs_.Add(module_name);
                    _argvs_.Add(func_name);
                    _argvs_.Add(_argvs_list);
                    callLogicCallback_argv_set.Add(callbackid, _argvs_);
                }
            }
        }
示例#2
0
        public void call_logic_mothed(String svr_uuid, String module_name, String func_name, String argvs)
        {
            if (lgoicproxys.ContainsKey(svr_uuid))
            {
                lgoicproxys[svr_uuid].call_logic(module_name, func_name, argvs);
            }
            else
            {
                if (logics.ContainsKey(svr_uuid))
                {
                    var ip = logics[svr_uuid].Item1;
                    var port = logics[svr_uuid].Item2;

                    var ch = _logic_conn.connect(ip, port);

                    var _proxy = new logicproxy(ch);
                    var callbackid = System.Guid.NewGuid().ToString();
                    _proxy.reg_logic(callbackid);

                    var _argvs = new ArrayList();
                    _argvs.Add(svr_uuid);
                    _argvs.Add(module_name);
                    _argvs.Add(func_name);
                    _argvs.Add(argvs);
                    callLogicCallback_argv_set.Add(callbackid, _argvs);
                }
            }
        }
示例#3
0
        public logicproxy on_reg_logic(String uuid, juggle.Ichannel ch)
        {
            if (!lgoicproxys.ContainsKey(uuid))
            {
                var _proxy = new logicproxy(ch);
                lgoicproxys.Add(uuid, _proxy);

                return(_proxy);
            }

            return(lgoicproxys[uuid]);
        }
示例#4
0
        public logicproxy on_reg_logic(String uuid, juggle.Ichannel ch)
        {
            if (!lgoicproxys.ContainsKey(uuid))
            {
                var _proxy = new logicproxy(ch);
                lgoicproxys.Add(uuid, _proxy);

                return _proxy;
            }

            return lgoicproxys[uuid];
        }