예제 #1
0
 private Ice.AsyncResult <Demo.Callback_CallbackSender_initiateCallback> begin_initiateCallback(Demo.CallbackReceiverPrx proxy, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, bool synchronous__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync <Demo.Callback_CallbackSender_initiateCallback> result__ = getOnewayOutgoingAsync <Demo.Callback_CallbackSender_initiateCallback>(__initiateCallback_name, initiateCallback_completed__, cookie__);
     if (cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare(__initiateCallback_name, Ice.OperationMode.Normal, ctx__, explicitContext__, synchronous__);
         IceInternal.BasicStream os__ = result__.startWriteParams(Ice.FormatType.DefaultFormat);
         Demo.CallbackReceiverPrxHelper.write__(os__, proxy);
         result__.endWriteParams();
         result__.invoke();
     }
     catch (Ice.Exception ex__)
     {
         result__.abort(ex__);
     }
     return(result__);
 }
예제 #2
0
 private Ice.AsyncResult <demo.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 <demo.Callback_Printer_printString> result__ = getOnewayOutgoingAsync <demo.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__);
 }
예제 #3
0
파일: CS_NMClient.cs 프로젝트: metoer/wpf
 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__);
 }