public override void UpdateData_async(MCS.AMD_GuiDataUpdater_UpdateData updater, long lTime, GuiDataItem data, Ice.Current current) { updater.ice_response(); if (null != this.DataChange) { this.DataChange(lTime, data); } }
public int SetPushCmd(MCS.GuiDataUpdaterPrx updater, MCS.GuiHub.PushData[] list, int session, _System.Collections.Generic.Dictionary<string, string> context__) { IceInternal.Outgoing og__ = handler__.getOutgoing("SetPushCmd", Ice.OperationMode.Idempotent, context__); try { try { IceInternal.BasicStream os__ = og__.ostr(); MCS.GuiDataUpdaterPrxHelper.write__(os__, updater); if(list == null) { os__.writeSize(0); } else { os__.writeSize(list.Length); for(int ix__ = 0; ix__ < list.Length; ++ix__) { os__.writeByte((byte)list[ix__], 10); } } os__.writeInt(session); } 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(); int ret__; ret__ = is__.readInt(); is__.endReadEncaps(); return ret__; } catch(Ice.LocalException ex__) { throw new IceInternal.LocalExceptionWrapper(ex__, false); } } finally { handler__.reclaimOutgoing(og__); } }
public void EraseDataUpdater(MCS.GuiDataUpdaterPrx updater, _System.Collections.Generic.Dictionary<string, string> context__) { EraseDataUpdater(updater, context__, true); }
public bool UpdateData_async(MCS.AMI_GuiDataUpdater_UpdateData cb__, long time, MCS.GuiDataItem data, _System.Collections.Generic.Dictionary<string, string> ctx__) { Ice.AsyncResult<MCS.Callback_GuiDataUpdater_UpdateData> result__ = begin_UpdateData(time, data, ctx__); result__.whenCompleted(cb__.response__, cb__.exception__); if(cb__ is Ice.AMISentCallback) { result__.whenSent((Ice.AsyncCallback)cb__.sent__); } return result__.sentSynchronously(); }
private void UpdateData_completed__(MCS.Callback_GuiDataUpdater_UpdateData cb__) { if(cb__ != null) { cb__(); } }
public Ice.AsyncResult begin_UpdateData(long time, MCS.GuiDataItem data, _System.Collections.Generic.Dictionary<string, string> ctx__, Ice.AsyncCallback cb__, object cookie__) { return begin_UpdateData(time, data, ctx__, true, cb__, cookie__); }
public Ice.AsyncResult<MCS.Callback_GuiDataUpdater_UpdateData> begin_UpdateData(long time, MCS.GuiDataItem data, _System.Collections.Generic.Dictionary<string, string> ctx__) { return begin_UpdateData(time, data, ctx__, true, null, null); }
public void UpdateData(long time, MCS.GuiDataItem data, _System.Collections.Generic.Dictionary<string, string> context__) { UpdateData(time, data, context__, true); }
public int SetPushCmd(MCS.GuiDataUpdaterPrx updater, MCS.GuiHub.PushData[] list, int session) { return SetPushCmd(updater, list, session, Ice.ObjectImpl.defaultCurrent); }
public abstract void UpdateData_async(MCS.AMD_GuiDataUpdater_UpdateData cb__, long time, MCS.GuiDataItem data, Ice.Current current__);
public void UpdateData_async(MCS.AMD_GuiDataUpdater_UpdateData cb__, long time, MCS.GuiDataItem data) { UpdateData_async(cb__, time, data, Ice.ObjectImpl.defaultCurrent); }
public int WriteData(MCS.GuiHub.GuiCommand Tag, string Val, int session, _System.Collections.Generic.Dictionary<string, string> context__) { Ice.Current current__ = new Ice.Current(); initCurrent__(ref current__, "WriteData", Ice.OperationMode.Idempotent, context__); int result__ = 0; IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__) { GuiDataHub servant__ = null; try { servant__ = (GuiDataHub)obj__; } catch(_System.InvalidCastException) { throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation); } result__ = servant__.WriteData(Tag, Val, session, current__); return Ice.DispatchStatus.DispatchOK; }; IceInternal.Direct direct__ = null; try { direct__ = new IceInternal.Direct(current__, run__); try { Ice.DispatchStatus status__ = direct__.servant().collocDispatch__(direct__); _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK); } finally { direct__.destroy(); } } catch(Ice.SystemException) { throw; } catch(_System.Exception ex__) { IceInternal.LocalExceptionWrapper.throwWrapper(ex__); } return result__; }
public void SetDataUpdater(MCS.GuiDataUpdaterPrx updater, _System.Collections.Generic.Dictionary<string, string> context__) { Ice.Current current__ = new Ice.Current(); initCurrent__(ref current__, "SetDataUpdater", Ice.OperationMode.Idempotent, context__); IceInternal.Direct.RunDelegate run__ = delegate(Ice.Object obj__) { GuiDataHub servant__ = null; try { servant__ = (GuiDataHub)obj__; } catch(_System.InvalidCastException) { throw new Ice.OperationNotExistException(current__.id, current__.facet, current__.operation); } servant__.SetDataUpdater(updater, current__); return Ice.DispatchStatus.DispatchOK; }; IceInternal.Direct direct__ = null; try { direct__ = new IceInternal.Direct(current__, run__); try { Ice.DispatchStatus status__ = direct__.servant().collocDispatch__(direct__); _System.Diagnostics.Debug.Assert(status__ == Ice.DispatchStatus.DispatchOK); } finally { direct__.destroy(); } } catch(Ice.SystemException) { throw; } catch(_System.Exception ex__) { IceInternal.LocalExceptionWrapper.throwWrapper(ex__); } }
public void UpdateData(long time, MCS.GuiDataItem data, _System.Collections.Generic.Dictionary<string, string> context__) { throw new Ice.CollocationOptimizationException(); }
public int WriteData(MCS.GuiHub.GuiCommand Tag, string Val, int session, _System.Collections.Generic.Dictionary<string, string> context__) { IceInternal.Outgoing og__ = handler__.getOutgoing("WriteData", Ice.OperationMode.Idempotent, context__); try { try { IceInternal.BasicStream os__ = og__.ostr(); os__.writeByte((byte)Tag, 18); os__.writeString(Val); os__.writeInt(session); } 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(); int ret__; ret__ = is__.readInt(); is__.endReadEncaps(); return ret__; } catch(Ice.LocalException ex__) { throw new IceInternal.LocalExceptionWrapper(ex__, false); } } finally { handler__.reclaimOutgoing(og__); } }
public GuiDataItem(MCS.GuiHub.PushData enumTag, string sVal) { this.enumTag = enumTag; this.sVal = sVal; }
public void UpdateData(long time, MCS.GuiDataItem data) { UpdateData(time, data, null, false); }
public abstract int SetPushCmd(MCS.GuiDataUpdaterPrx updater, MCS.GuiHub.PushData[] list, int session, Ice.Current current__);
public Ice.AsyncResult<MCS.Callback_GuiDataUpdater_UpdateData> begin_UpdateData(long time, MCS.GuiDataItem data) { return begin_UpdateData(time, data, null, false, null, null); }
public string ReadData(MCS.GuiHub.GuiCommand Tag, int session) { return ReadData(Tag, session, Ice.ObjectImpl.defaultCurrent); }
public Ice.AsyncResult begin_UpdateData(long time, MCS.GuiDataItem data, Ice.AsyncCallback cb__, object cookie__) { return begin_UpdateData(time, data, null, false, cb__, cookie__); }
public abstract string ReadData(MCS.GuiHub.GuiCommand Tag, int session, Ice.Current current__);
private Ice.AsyncResult<MCS.Callback_GuiDataUpdater_UpdateData> begin_UpdateData(long time, MCS.GuiDataItem data, _System.Collections.Generic.Dictionary<string, string> ctx__, bool explicitContext__, Ice.AsyncCallback cb__, object cookie__) { IceInternal.OnewayOutgoingAsync<MCS.Callback_GuiDataUpdater_UpdateData> result__ = new IceInternal.OnewayOutgoingAsync<MCS.Callback_GuiDataUpdater_UpdateData>(this, __UpdateData_name, UpdateData_completed__, cookie__); if(cb__ != null) { result__.whenCompletedWithAsyncCallback(cb__); } try { result__.prepare__(__UpdateData_name, Ice.OperationMode.Idempotent, ctx__, explicitContext__); IceInternal.BasicStream os__ = result__.ostr__; os__.writeLong(time); if(data == null) { MCS.GuiDataItem tmp__ = new MCS.GuiDataItem(); tmp__.write__(os__); } else { data.write__(os__); } os__.endWriteEncaps(); result__.send__(true); } catch(Ice.LocalException ex__) { result__.exceptionAsync__(ex__); } return result__; }
public int WriteData(MCS.GuiHub.GuiCommand Tag, string Val, int session) { return WriteData(Tag, Val, session, Ice.ObjectImpl.defaultCurrent); }
public bool UpdateData_async(MCS.AMI_GuiDataUpdater_UpdateData cb__, long time, MCS.GuiDataItem data) { Ice.AsyncResult<MCS.Callback_GuiDataUpdater_UpdateData> result__ = begin_UpdateData(time, data); result__.whenCompleted(cb__.response__, cb__.exception__); if(cb__ is Ice.AMISentCallback) { result__.whenSent((Ice.AsyncCallback)cb__.sent__); } return result__.sentSynchronously(); }
public abstract int WriteData(MCS.GuiHub.GuiCommand Tag, string Val, int session, Ice.Current current__);
public void EraseDataUpdater(MCS.GuiDataUpdaterPrx updater) { EraseDataUpdater(updater, null, false); }
public void EraseDataUpdater(MCS.GuiDataUpdaterPrx updater) { EraseDataUpdater(updater, Ice.ObjectImpl.defaultCurrent); }
private void EraseDataUpdater(MCS.GuiDataUpdaterPrx updater, _System.Collections.Generic.Dictionary<string, string> context__, bool explicitContext__) { if(explicitContext__ && context__ == null) { context__ = emptyContext_; } int cnt__ = 0; while(true) { Ice.ObjectDel_ delBase__ = null; try { delBase__ = getDelegate__(false); GuiDataHubDel_ del__ = (GuiDataHubDel_)delBase__; del__.EraseDataUpdater(updater, context__); return; } catch(IceInternal.LocalExceptionWrapper ex__) { handleExceptionWrapperRelaxed__(delBase__, ex__, true, ref cnt__); } catch(Ice.LocalException ex__) { handleException__(delBase__, ex__, true, ref cnt__); } } }
public abstract void EraseDataUpdater(MCS.GuiDataUpdaterPrx updater, Ice.Current current__);