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__); }
private Ice.AsyncResult <NProgDistributed.TheIce.Callback_IMessageService_Send> begin_Send(NProgDistributed.TheIce.MessageDto message, _System.Collections.Generic.Dictionary <string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__) { checkAsyncTwowayOnly__(__Send_name); IceInternal.TwowayOutgoingAsync <NProgDistributed.TheIce.Callback_IMessageService_Send> result__ = new IceInternal.TwowayOutgoingAsync <NProgDistributed.TheIce.Callback_IMessageService_Send>(this, __Send_name, Send_completed__, cookie__); if (cb__ != null) { result__.whenCompletedWithAsyncCallback(cb__); } try { result__.prepare__(__Send_name, Ice.OperationMode.Normal, ctx__, explicitContext__); IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat); os__.writeObject(message); os__.writePendingObjects(); result__.endWriteParams__(); result__.send__(true); } catch (Ice.LocalException ex__) { result__.exceptionAsync__(ex__); } return(result__); }
private Ice.AsyncResult<SR.Callback_CertSigner_signCSR> begin_signCSR(string name, string surname, byte[] csrFile, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__) { checkAsyncTwowayOnly__(__signCSR_name); IceInternal.TwowayOutgoingAsync<SR.Callback_CertSigner_signCSR> result__ = new IceInternal.TwowayOutgoingAsync<SR.Callback_CertSigner_signCSR>(this, __signCSR_name, signCSR_completed__, cookie__); if(cb__ != null) { result__.whenCompletedWithAsyncCallback(cb__); } try { result__.prepare__(__signCSR_name, Ice.OperationMode.Normal, ctx__, explicitContext__); IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat); os__.writeString(name); os__.writeString(surname); Ice.ByteSeqHelper.write(os__, csrFile); result__.endWriteParams__(); result__.send__(true); } catch(Ice.LocalException ex__) { result__.exceptionAsync__(ex__); } return result__; }
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__; }
private AsyncResult<Callback_Object_ice_isA> begin_ice_isA(string id, Dictionary<string, string> context__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__) { IceInternal.TwowayOutgoingAsync<Callback_Object_ice_isA> result__ = new IceInternal.TwowayOutgoingAsync<Callback_Object_ice_isA>(this, __ice_isA_name, ice_isA_completed__, cookie__); if(cb__ != null) { result__.whenCompletedWithAsyncCallback(cb__); } checkAsyncTwowayOnly__(__ice_isA_name); try { result__.prepare__(__ice_isA_name, OperationMode.Nonmutating, context__, explicitContext__); IceInternal.BasicStream os__ = result__.startWriteParams__(FormatType.DefaultFormat); os__.writeString(id); result__.endWriteParams__(); result__.send__(true); } catch(Ice.LocalException ex__) { result__.exceptionAsync__(ex__); } return result__; }
private Ice.AsyncResult<Bank.Callback_BankManager_createAccount> begin_createAccount(Bank.PersonalData data, Bank.accountType type, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__) { checkAsyncTwowayOnly__(__createAccount_name); IceInternal.TwowayOutgoingAsync<Bank.Callback_BankManager_createAccount> result__ = new IceInternal.TwowayOutgoingAsync<Bank.Callback_BankManager_createAccount>(this, __createAccount_name, createAccount_completed__, cookie__); if(cb__ != null) { result__.whenCompletedWithAsyncCallback(cb__); } try { result__.prepare__(__createAccount_name, Ice.OperationMode.Normal, ctx__, explicitContext__); IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat); if(data == null) { Bank.PersonalData tmp__ = new Bank.PersonalData(); tmp__.write__(os__); } else { data.write__(os__); } os__.writeEnum((int)type, 1); result__.endWriteParams__(); result__.send__(true); } catch(Ice.LocalException ex__) { result__.exceptionAsync__(ex__); } return result__; }
private Ice.AsyncResult<Bank.Callback_PremiumAccount_calculateLoan> begin_calculateLoan(int amount, Bank.currency curr, int period, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__) { checkAsyncTwowayOnly__(__calculateLoan_name); IceInternal.TwowayOutgoingAsync<Bank.Callback_PremiumAccount_calculateLoan> result__ = new IceInternal.TwowayOutgoingAsync<Bank.Callback_PremiumAccount_calculateLoan>(this, __calculateLoan_name, calculateLoan_completed__, cookie__); if(cb__ != null) { result__.whenCompletedWithAsyncCallback(cb__); } try { result__.prepare__(__calculateLoan_name, Ice.OperationMode.Normal, ctx__, explicitContext__); IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat); os__.writeInt(amount); os__.writeEnum((int)curr, 3); os__.writeInt(period); result__.endWriteParams__(); result__.send__(true); } catch(Ice.LocalException ex__) { result__.exceptionAsync__(ex__); } return result__; }
private Ice.AsyncResult<NProgDistributed.TheIce.Callback_IMessageService_Send> begin_Send(NProgDistributed.TheIce.MessageDto message, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__) { checkAsyncTwowayOnly__(__Send_name); IceInternal.TwowayOutgoingAsync<NProgDistributed.TheIce.Callback_IMessageService_Send> result__ = new IceInternal.TwowayOutgoingAsync<NProgDistributed.TheIce.Callback_IMessageService_Send>(this, __Send_name, Send_completed__, cookie__); if(cb__ != null) { result__.whenCompletedWithAsyncCallback(cb__); } try { result__.prepare__(__Send_name, Ice.OperationMode.Normal, ctx__, explicitContext__); IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat); os__.writeObject(message); os__.writePendingObjects(); result__.endWriteParams__(); result__.send__(true); } catch(Ice.LocalException ex__) { result__.exceptionAsync__(ex__); } return result__; }