예제 #1
0
        public static Ice.DispatchStatus PrintString___(Printer obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            string s;

            s = is__.readString();
            inS__.endReadParams();
            obj__.PrintString(s, current__);
            inS__.writeEmptyParams__();
            return(Ice.DispatchStatus.DispatchOK);
        }
예제 #2
0
        public static Ice.DispatchStatus TransHeartbeat___(CallbackClient obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            long lTime;

            lTime = is__.readLong();
            inS__.endReadParams();
            obj__.TransHeartbeat(lTime, current__);
            inS__.writeEmptyParams__();
            return(Ice.DispatchStatus.DispatchOK);
        }
예제 #3
0
        public static Ice.DispatchStatus SetWriteLogFlag___(LogServer_RPC obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            bool bWrite;

            bWrite = is__.readBool();
            inS__.endReadParams();
            obj__.SetWriteLogFlag(bWrite, current__);
            inS__.writeEmptyParams__();
            return(Ice.DispatchStatus.DispatchOK);
        }
예제 #4
0
        public static Ice.DispatchStatus onRecv___(ConnectionListener obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            string xmlContent;

            xmlContent = is__.readString();
            inS__.endReadParams();
            obj__.onRecv(xmlContent, current__);
            inS__.writeEmptyParams__();
            return(Ice.DispatchStatus.DispatchOK);
        }
예제 #5
0
        public static DispatchStatus ice_isA___(Ice.Object __obj, IceInternal.Incoming inS__, Current __current)
        {
            InputStream is__ = inS__.startReadParams();
            string      __id = is__.readString();

            inS__.endReadParams();
            bool         __ret = __obj.ice_isA(__id, __current);
            OutputStream os__  = inS__.startWriteParams__(FormatType.DefaultFormat);

            os__.writeBool(__ret);
            inS__.endWriteParams__(true);
            return(DispatchStatus.DispatchOK);
        }
예제 #6
0
파일: Object.cs 프로젝트: chuanqingli/ice
        public static Task <OutputStream> iceD_ice_isA(Object obj, IceInternal.Incoming inS, Current current)
        {
            InputStream istr = inS.startReadParams();
            var         id   = istr.readString();

            inS.endReadParams();
            var ret  = obj.ice_isA(id, current);
            var ostr = inS.startWriteParams();

            ostr.writeBool(ret);
            inS.endWriteParams(ostr);
            inS.setResult(ostr);
            return(null);
        }
예제 #7
0
파일: CS_NMClient.cs 프로젝트: metoer/wpf
        public static Ice.DispatchStatus NMRegistClient___(NMServer obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            string strClientId;

            IRPC.NMClientPrx Client;
            strClientId = is__.readString();
            Client      = IRPC.NMClientPrxHelper.read__(is__);
            inS__.endReadParams();
            obj__.NMRegistClient(strClientId, Client, current__);
            inS__.writeEmptyParams__();
            return(Ice.DispatchStatus.DispatchOK);
        }
예제 #8
0
파일: Object.cs 프로젝트: zhaochf/ice
        public static Task <Ice.OutputStream> ice_isA___(Ice.Object __obj, IceInternal.Incoming inS__, Current __current)
        {
            InputStream is__ = inS__.startReadParams();
            var         __id = is__.readString();

            inS__.endReadParams();
            var __ret = __obj.ice_isA(__id, __current);
            var os__  = inS__.startWriteParams();

            os__.writeBool(__ret);
            inS__.endWriteParams(os__);
            inS__.setResult(os__);
            return(null);
        }
예제 #9
0
            iceD_JoinSceneReq(IPlayerCo obj, IceInternal.Incoming inS, Ice.Current current)
            {
                Ice.ObjectImpl.iceCheckMode(Ice.OperationMode.Normal, current.mode);
                var  istr = inS.startReadParams();
                byte iceP_sceneid;

                iceP_sceneid = istr.readByte();
                inS.endReadParams();
                return(inS.setResultTask <bool>(obj.JoinSceneReqAsync(iceP_sceneid, current),
                                                (ostr, ret) =>
                {
                    ostr.writeBool(ret);
                }));
            }
예제 #10
0
        iceD_initiateCallback(CallbackSender obj, IceInternal.Incoming inS, Ice.Current current)
        {
            Ice.ObjectImpl.iceCheckMode(Ice.OperationMode.Normal, current.mode);
            var istr = inS.startReadParams();

            Demo.CallbackReceiverPrx iceP_proxy;
            string iceP_message;

            iceP_proxy   = Demo.CallbackReceiverPrxHelper.read(istr);
            iceP_message = istr.readString();
            inS.endReadParams();
            obj.initiateCallback(iceP_proxy, iceP_message, current);
            return(inS.setResult(inS.writeEmptyParams()));
        }
예제 #11
0
            iceD_PlayerEnter(IZone obj, IceInternal.Incoming inS, Ice.Current current)
            {
                Ice.ObjectImpl.iceCheckMode(Ice.OperationMode.Normal, current.mode);
                var    istr = inS.startReadParams();
                string iceP_zoneId;

                iceP_zoneId = istr.readString();
                inS.endReadParams();
                return(inS.setResultTask <EndPointZone>(obj.PlayerEnterAsync(iceP_zoneId, current),
                                                        (ostr, ret) =>
                {
                    EndPointZone.ice_write(ostr, ret);
                }));
            }
예제 #12
0
        public static Ice.DispatchStatus sendImage___(Printer obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            byte[] seq;
            string name;

            seq  = demo.ByteSeqHelper.read(is__);
            name = is__.readString();
            inS__.endReadParams();
            obj__.sendImage(seq, name, current__);
            inS__.writeEmptyParams__();
            return(Ice.DispatchStatus.DispatchOK);
        }
예제 #13
0
        public static Ice.DispatchStatus toUpper___(Converter obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            string s;

            s = is__.readString();
            inS__.endReadParams();
            string ret__ = obj__.toUpper(s, current__);

            IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
            os__.writeString(ret__);
            inS__.endWriteParams__(true);
            return(Ice.DispatchStatus.DispatchOK);
        }
예제 #14
0
파일: CS_NMClient.cs 프로젝트: metoer/wpf
        public static Ice.DispatchStatus SendData___(NMClient obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            string strXml;

            strXml = is__.readString();
            inS__.endReadParams();
            int ret__ = obj__.SendData(strXml, current__);

            IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
            os__.writeInt(ret__);
            inS__.endWriteParams__(true);
            return(Ice.DispatchStatus.DispatchOK);
        }
예제 #15
0
        public static Ice.DispatchStatus send___(FaceRecognition obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            string xml;

            xml = is__.readString();
            inS__.endReadParams();
            string ret__ = obj__.send(xml, current__);

            IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
            os__.writeString(ret__);
            inS__.endWriteParams__(true);
            return(Ice.DispatchStatus.DispatchOK);
        }
 public static Ice.DispatchStatus Send___(IMessageService obj__, IceInternal.Incoming inS__, Ice.Current current__)
 {
     checkMode__(Ice.OperationMode.Normal, current__.mode);
     IceInternal.BasicStream is__ = inS__.startReadParams();
     IceInternal.ParamPatcher <NProgDistributed.TheIce.MessageDto> message__PP = new IceInternal.ParamPatcher <NProgDistributed.TheIce.MessageDto>(NProgDistributed.TheIce.MessageDto.ice_staticId());
     is__.readObject(message__PP);
     is__.readPendingObjects();
     inS__.endReadParams();
     NProgDistributed.TheIce.MessageDto ret__ = obj__.Send(message__PP.value, current__);
     IceInternal.BasicStream            os__  = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
     os__.writeObject(ret__);
     os__.writePendingObjects();
     inS__.endWriteParams__(true);
     return(Ice.DispatchStatus.DispatchOK);
 }
예제 #17
0
        public static Ice.DispatchStatus WriteLogInit___(LogServer_RPC obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            IRPC.LogInitInfo        InitInfo;
            InitInfo = null;
            InitInfo = IRPC.LogInitInfo.read__(is__, InitInfo);
            inS__.endReadParams();
            bool ret__ = obj__.WriteLogInit(InitInfo, current__);

            IceInternal.BasicStream os__ = inS__.startWriteParams__(Ice.FormatType.DefaultFormat);
            os__.writeBool(ret__);
            inS__.endWriteParams__(true);
            return(Ice.DispatchStatus.DispatchOK);
        }
예제 #18
0
            iceD_LoginRequest(IAccount obj, IceInternal.Incoming inS, Ice.Current current)
            {
                Ice.ObjectImpl.iceCheckMode(Ice.OperationMode.Normal, current.mode);
                var    istr = inS.startReadParams();
                string iceP_account;
                string iceP_pwd;

                iceP_account = istr.readString();
                iceP_pwd     = istr.readString();
                inS.endReadParams();
                return(inS.setResultTask <LoginInfo>(obj.LoginRequestAsync(iceP_account, iceP_pwd, current),
                                                     (ostr, ret) =>
                {
                    LoginInfo.ice_write(ostr, ret);
                }));
            }
예제 #19
0
            iceD_RegOrLoginReq(IPlayerCo obj, IceInternal.Incoming inS, Ice.Current current)
            {
                Ice.ObjectImpl.iceCheckMode(Ice.OperationMode.Normal, current.mode);
                var    istr = inS.startReadParams();
                string iceP_account;
                string iceP_pwd;

                iceP_account = istr.readString();
                iceP_pwd     = istr.readString();
                inS.endReadParams();
                return(inS.setResultTask <RLResultRes>(obj.RegOrLoginReqAsync(iceP_account, iceP_pwd, current),
                                                       (ostr, ret) =>
                {
                    RLResultRes.ice_write(ostr, ret);
                }));
            }
예제 #20
0
        public static Ice.DispatchStatus log___(RemoteLog obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            string name;
            string time;
            string msg;

            name = is__.readString();
            time = is__.readString();
            msg  = is__.readString();
            inS__.endReadParams();
            obj__.log(name, time, msg, current__);
            inS__.writeEmptyParams__();
            return(Ice.DispatchStatus.DispatchOK);
        }
예제 #21
0
        public static Ice.DispatchStatus RegistClient___(CSTransDataFromClient obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            string strClientId;

            IRPC.CallbackClientPrx callbackClient;
            int iHeartbeatInterval;

            strClientId        = is__.readString();
            callbackClient     = IRPC.CallbackClientPrxHelper.read__(is__);
            iHeartbeatInterval = is__.readInt();
            inS__.endReadParams();
            obj__.RegistClient(strClientId, callbackClient, iHeartbeatInterval, current__);
            inS__.writeEmptyParams__();
            return(Ice.DispatchStatus.DispatchOK);
        }
예제 #22
0
        public static Ice.DispatchStatus WriteLog___(LogServer_RPC obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            Ice.ObjectImpl.checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.startReadParams();
            string strServerID;
            string strPluginName;
            string strLog;
            int    LogLevel;

            strServerID   = is__.readString();
            strPluginName = is__.readString();
            strLog        = is__.readString();
            LogLevel      = is__.readInt();
            inS__.endReadParams();
            obj__.WriteLog(strServerID, strPluginName, strLog, LogLevel, current__);
            inS__.writeEmptyParams__();
            return(Ice.DispatchStatus.DispatchOK);
        }