示例#1
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__);
 }
示例#2
0
 private Ice.AsyncResult<R2D2.Callback_BotToBase_updateInventory> begin_updateInventory(int inventory, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync<R2D2.Callback_BotToBase_updateInventory> result__ = new IceInternal.OnewayOutgoingAsync<R2D2.Callback_BotToBase_updateInventory>(this, __updateInventory_name, updateInventory_completed__, cookie__);
     if(cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare__(__updateInventory_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
         IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeInt(inventory);
         result__.endWriteParams__();
         result__.send__(true);
     }
     catch(Ice.LocalException ex__)
     {
         result__.exceptionAsync__(ex__);
     }
     return result__;
 }
示例#3
0
 private Ice.AsyncResult<R2D2.Callback_BotToBase_updatePowerStats> begin_updatePowerStats(float batteryPercent, float voltage, float regulatedCurrent, float unregulatedCurrent, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync<R2D2.Callback_BotToBase_updatePowerStats> result__ = new IceInternal.OnewayOutgoingAsync<R2D2.Callback_BotToBase_updatePowerStats>(this, __updatePowerStats_name, updatePowerStats_completed__, cookie__);
     if(cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare__(__updatePowerStats_name, Ice.OperationMode.Normal, ctx__, explicitContext__);
         IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeFloat(batteryPercent);
         os__.writeFloat(voltage);
         os__.writeFloat(regulatedCurrent);
         os__.writeFloat(unregulatedCurrent);
         result__.endWriteParams__();
         result__.send__(true);
     }
     catch(Ice.LocalException ex__)
     {
         result__.exceptionAsync__(ex__);
     }
     return result__;
 }
示例#4
0
文件: midax.cs 项目: JBetser/MiDax
 private Ice.AsyncResult<Midax.Callback_MidaxIce_tick> begin_tick(string mktDataId, long year, long month, long day, long hours, long minutes, long seconds, long milliseconds, double price, long volume, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync<Midax.Callback_MidaxIce_tick> result__ = new IceInternal.OnewayOutgoingAsync<Midax.Callback_MidaxIce_tick>(this, __tick_name, tick_completed__, cookie__);
     if(cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare__(__tick_name, Ice.OperationMode.Idempotent, ctx__, explicitContext__);
         IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeString(mktDataId);
         os__.writeLong(year);
         os__.writeLong(month);
         os__.writeLong(day);
         os__.writeLong(hours);
         os__.writeLong(minutes);
         os__.writeLong(seconds);
         os__.writeLong(milliseconds);
         os__.writeDouble(price);
         os__.writeLong(volume);
         result__.endWriteParams__();
         result__.send__(true);
     }
     catch(Ice.LocalException ex__)
     {
         result__.exceptionAsync__(ex__);
     }
     return result__;
 }
示例#5
0
文件: midax.cs 项目: JBetser/MiDax
 private Ice.AsyncResult<Midax.Callback_MidaxIce_log> begin_log(string message, long logType, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__)
 {
     IceInternal.OnewayOutgoingAsync<Midax.Callback_MidaxIce_log> result__ = new IceInternal.OnewayOutgoingAsync<Midax.Callback_MidaxIce_log>(this, __log_name, log_completed__, cookie__);
     if(cb__ != null)
     {
         result__.whenCompletedWithAsyncCallback(cb__);
     }
     try
     {
         result__.prepare__(__log_name, Ice.OperationMode.Idempotent, ctx__, explicitContext__);
         IceInternal.BasicStream os__ = result__.startWriteParams__(Ice.FormatType.DefaultFormat);
         os__.writeString(message);
         os__.writeLong(logType);
         result__.endWriteParams__();
         result__.send__(true);
     }
     catch(Ice.LocalException ex__)
     {
         result__.exceptionAsync__(ex__);
     }
     return result__;
 }