protected override void writeImpl__(IceInternal.BasicStream os__)
 {
     os__.startWriteSlice(ice_staticId(), -1, true);
     os__.writeString(body);
     os__.writeString(messageType);
     os__.endWriteSlice();
 }
Пример #2
0
 protected virtual void writeImpl__(IceInternal.BasicStream os__)
 {
     os__.startWriteSlice(ice_staticId(), -1, true);
     os__.writeString(user_id);
     os__.writeString(token);
     os__.writeString(ext);
     os__.endWriteSlice();
 }
Пример #3
0
 public void log(string name, string time, string msg, _System.Collections.Generic.Dictionary <string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("log", Ice.OperationMode.Normal, context__, observer__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.startWriteParams(Ice.FormatType.DefaultFormat);
             os__.writeString(name);
             os__.writeString(time);
             os__.writeString(msg);
             og__.endWriteParams();
         }
         catch (Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         if (og__.hasResponse())
         {
             try
             {
                 if (!ok__)
                 {
                     try
                     {
                         og__.throwUserException();
                     }
                     catch (Ice.UserException ex__)
                     {
                         throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
                     }
                 }
                 og__.readEmptyParams();
             }
             catch (Ice.LocalException ex__)
             {
                 throw new IceInternal.LocalExceptionWrapper(ex__, false);
             }
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Пример #4
0
 public void write__(IceInternal.BasicStream os__)
 {
     os__.writeInt(Id);
     os__.writeInt(ClientId);
     os__.writeString(ClientName);
     os__.writeString(Password);
     os__.writeString(ComPassword);
     os__.writeEnum((int)FundType, 1);
     os__.writeString(BrokerName);
     os__.writeString(DepartmentNo);
     os__.writeString(FundName);
     os__.writeString(SHStockAccount);
     os__.writeString(SZStockAccount);
     os__.writeString(Node);
 }
Пример #5
0
        public static DispatchStatus ice_id___(Ice.Object __obj, IceInternal.Incoming inS__, Current __current)
        {
            inS__.readEmptyParams();
            string __ret = __obj.ice_id(__current);

            IceInternal.BasicStream os__ = inS__.startWriteParams__(FormatType.DefaultFormat);
            os__.writeString(__ret);
            inS__.endWriteParams__(true);
            return(DispatchStatus.DispatchOK);
        }
Пример #6
0
 //
 // Marshal the endpoint.
 //
 public override void streamWrite(IceInternal.BasicStream s)
 {
     s.writeShort(EndpointType.value);
     s.startWriteEncaps();
     s.writeString(_host);
     s.writeInt(_port);
     s.writeInt(_timeout);
     s.writeBool(_compress);
     s.endWriteEncaps();
 }
Пример #7
0
 private Ice.AsyncResult <Logging.Callback_RemoteLog_log> begin_log(string name, string time, string msg, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync <Logging.Callback_RemoteLog_log> result__ = new IceInternal.OnewayOutgoingAsync <Logging.Callback_RemoteLog_log>(this, __log_name, log_completed__, cookie__);
     if (cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare__(__log_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
         IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeString(name);
         os__.writeString(time);
         os__.writeString(msg);
         result__.endWriteParams__();
         result__.send__(true);
     }
     catch (Ice.LocalException ex__)
     {
         result__.exceptionAsync__(ex__);
     }
     return(result__);
 }
Пример #8
0
 private Ice.AsyncResult <IRPC.Callback_CSTransDataFromClient_TransDataFromClient> begin_TransDataFromClient(string strClientId, string strXml, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
 {
     checkAsyncTwowayOnly__(__TransDataFromClient_name);
     IceInternal.TwowayOutgoingAsync <IRPC.Callback_CSTransDataFromClient_TransDataFromClient> result__ = getTwowayOutgoingAsync <IRPC.Callback_CSTransDataFromClient_TransDataFromClient>(__TransDataFromClient_name, TransDataFromClient_completed__, cookie__);
     if (cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare(__TransDataFromClient_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
         IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
         os__.writeString(strClientId);
         os__.writeString(strXml);
         result__.endWriteParams();
         result__.invoke();
     }
     catch (Ice.Exception ex__)
     {
         result__.abort(ex__);
     }
     return(result__);
 }
Пример #9
0
 private Ice.AsyncResult <IRPC.Callback_LogServer_RPC_WriteLog> begin_WriteLog(string strServerID, string strPluginName, string strLog, int LogLevel, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync <IRPC.Callback_LogServer_RPC_WriteLog> result__ = getOnewayOutgoingAsync <IRPC.Callback_LogServer_RPC_WriteLog>(__WriteLog_name, WriteLog_completed__, cookie__);
     if (cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare(__WriteLog_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
         IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
         os__.writeString(strServerID);
         os__.writeString(strPluginName);
         os__.writeString(strLog);
         os__.writeInt(LogLevel);
         result__.endWriteParams();
         result__.invoke();
     }
     catch (Ice.Exception ex__)
     {
         result__.abort(ex__);
     }
     return(result__);
 }
Пример #10
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);
        }
Пример #11
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);
        }
Пример #12
0
        public static Ice.DispatchStatus helloWorld___(BitmapProvider obj__, IceInternal.Incoming inS__, Ice.Current current__)
        {
            checkMode__(Ice.OperationMode.Normal, current__.mode);
            IceInternal.BasicStream is__ = inS__.istr();
            is__.startReadEncaps();
            string something;

            something = is__.readString();
            is__.endReadEncaps();
            IceInternal.BasicStream os__ = inS__.ostr();
            string ret__ = obj__.helloWorld(something, current__);

            os__.writeString(ret__);
            return(Ice.DispatchStatus.DispatchOK);
        }
Пример #13
0
 public string toUpper(string s, _System.Collections.Generic.Dictionary <string, string> context__, Ice.Instrumentation.InvocationObserver observer__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("toUpper", Ice.OperationMode.Normal, context__, observer__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.startWriteParams(Ice.FormatType.DefaultFormat);
             os__.writeString(s);
             og__.endWriteParams();
         }
         catch (Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         try
         {
             if (!ok__)
             {
                 try
                 {
                     og__.throwUserException();
                 }
                 catch (Ice.UserException ex__)
                 {
                     throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
                 }
             }
             IceInternal.BasicStream is__ = og__.startReadParams();
             string ret__;
             ret__ = is__.readString();
             og__.endReadParams();
             return(ret__);
         }
         catch (Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Пример #14
0
 public string helloWorld(string something, _System.Collections.Generic.Dictionary <string, string> context__)
 {
     IceInternal.Outgoing og__ = handler__.getOutgoing("helloWorld", Ice.OperationMode.Normal, context__);
     try
     {
         try
         {
             IceInternal.BasicStream os__ = og__.ostr();
             os__.writeString(something);
         }
         catch (Ice.LocalException ex__)
         {
             og__.abort(ex__);
         }
         bool ok__ = og__.invoke();
         try
         {
             if (!ok__)
             {
                 try
                 {
                     og__.throwUserException();
                 }
                 catch (Ice.UserException ex__)
                 {
                     throw new Ice.UnknownUserException(ex__.ice_name(), ex__);
                 }
             }
             IceInternal.BasicStream is__ = og__.istr();
             is__.startReadEncaps();
             string ret__;
             ret__ = is__.readString();
             is__.endReadEncaps();
             return(ret__);
         }
         catch (Ice.LocalException ex__)
         {
             throw new IceInternal.LocalExceptionWrapper(ex__, false);
         }
     }
     finally
     {
         handler__.reclaimOutgoing(og__);
     }
 }
Пример #15
0
 private Ice.AsyncResult <FaceRecognitionModule.Callback_ConnectionListener_onRecv> begin_onRecv(string xmlContent, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync <FaceRecognitionModule.Callback_ConnectionListener_onRecv> result__ = getOnewayOutgoingAsync <FaceRecognitionModule.Callback_ConnectionListener_onRecv>(__onRecv_name, onRecv_completed__, cookie__);
     if (cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare(__onRecv_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
         IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
         os__.writeString(xmlContent);
         result__.endWriteParams();
         result__.invoke();
     }
     catch (Ice.Exception ex__)
     {
         result__.abort(ex__);
     }
     return(result__);
 }
Пример #16
0
 private Ice.AsyncResult <ZerocICE.Common.Callback_Printer_PrintString> begin_PrintString(string s, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync <ZerocICE.Common.Callback_Printer_PrintString> result__ = getOnewayOutgoingAsync <ZerocICE.Common.Callback_Printer_PrintString>(__PrintString_name, PrintString_completed__, cookie__);
     if (cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare(__PrintString_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
         IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
         os__.writeString(s);
         result__.endWriteParams();
         result__.invoke();
     }
     catch (Ice.Exception ex__)
     {
         result__.abort(ex__);
     }
     return(result__);
 }
Пример #17
0
 private Ice.AsyncResult <demo.Callback_Printer_sendImage> begin_sendImage(byte[] seq, string name, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync <demo.Callback_Printer_sendImage> result__ = getOnewayOutgoingAsync <demo.Callback_Printer_sendImage>(__sendImage_name, sendImage_completed__, cookie__);
     if (cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare(__sendImage_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
         IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
         demo.ByteSeqHelper.write(os__, seq);
         os__.writeString(name);
         result__.endWriteParams();
         result__.invoke();
     }
     catch (Ice.Exception ex__)
     {
         result__.abort(ex__);
     }
     return(result__);
 }
Пример #18
0
 private Ice.AsyncResult <Streamer.Callback_BitmapProvider_helloWorld> begin_helloWorld(string something, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
 {
     checkAsyncTwowayOnly__(__helloWorld_name);
     IceInternal.TwowayOutgoingAsync <Streamer.Callback_BitmapProvider_helloWorld> result__ = new IceInternal.TwowayOutgoingAsync <Streamer.Callback_BitmapProvider_helloWorld>(this, __helloWorld_name, helloWorld_completed__, cookie__);
     if (cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare__(__helloWorld_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
         IceInternal.BasicStream os__ = result__.ostr__;
         os__.writeString(something);
         os__.endWriteEncaps();
         result__.send__(true);
     }
     catch (Ice.LocalException ex__)
     {
         result__.exceptionAsync__(ex__);
     }
     return(result__);
 }
Пример #19
0
 private Ice.AsyncResult <Example.Callback_Converter_toUpper> begin_toUpper(string s, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
 {
     checkAsyncTwowayOnly__(__toUpper_name);
     IceInternal.TwowayOutgoingAsync <Example.Callback_Converter_toUpper> result__ = new IceInternal.TwowayOutgoingAsync <Example.Callback_Converter_toUpper>(this, __toUpper_name, toUpper_completed__, cookie__);
     if (cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare__(__toUpper_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
         IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeString(s);
         result__.endWriteParams__();
         result__.send__(true);
     }
     catch (Ice.LocalException ex__)
     {
         result__.exceptionAsync__(ex__);
     }
     return(result__);
 }
Пример #20
0
 private Ice.AsyncResult <IRPC.Callback_NMServer_NMRegistClient> begin_NMRegistClient(string strClientId, IRPC.NMClientPrx Client, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync <IRPC.Callback_NMServer_NMRegistClient> result__ = getOnewayOutgoingAsync <IRPC.Callback_NMServer_NMRegistClient>(__NMRegistClient_name, NMRegistClient_completed__, cookie__);
     if (cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare(__NMRegistClient_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
         IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
         os__.writeString(strClientId);
         IRPC.NMClientPrxHelper.write__(os__, Client);
         result__.endWriteParams();
         result__.invoke();
     }
     catch (Ice.Exception ex__)
     {
         result__.abort(ex__);
     }
     return(result__);
 }
Пример #21
0
 public void write__(IceInternal.BasicStream os__)
 {
     os__.writeInt(nDevID);
     os__.writeInt(nLocType);
     os__.writeString(sStatus);
 }
Пример #22
0
 public void write__(IceInternal.BasicStream os__)
 {
     os__.writeLong(Code);
     os__.writeString(Message);
 }
Пример #23
0
 public void write__(IceInternal.BasicStream os__)
 {
     os__.writeString(strServerID__prop);
     os__.writeString(strIp__prop);
     os__.writeString(strPluginName__prop);
 }