本文整理汇总了C#中MCS.MCS类的典型用法代码示例。如果您正苦于以下问题:C# MCS类的具体用法?C# MCS怎么用?C# MCS使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MCS类属于MCS命名空间,在下文中一共展示了MCS类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UpdateData_async
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);
}
}
示例2: SetPushCmd
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__);
}
}
示例3: EraseDataUpdater
public void EraseDataUpdater(MCS.GuiDataUpdaterPrx updater, _System.Collections.Generic.Dictionary<string, string> context__)
{
EraseDataUpdater(updater, context__, true);
}
示例4: UpdateData_async
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();
}
示例5: UpdateData_completed__
private void UpdateData_completed__(MCS.Callback_GuiDataUpdater_UpdateData cb__)
{
if(cb__ != null)
{
cb__();
}
}
示例6: begin_UpdateData
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__);
}
示例7: UpdateData
public void UpdateData(long time, MCS.GuiDataItem data, _System.Collections.Generic.Dictionary<string, string> context__)
{
UpdateData(time, data, context__, true);
}
示例8: WriteData
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__;
}
示例9: SetDataUpdater
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__);
}
}
示例10: GuiDataItem
public GuiDataItem(MCS.GuiHub.PushData enumTag, string sVal)
{
this.enumTag = enumTag;
this.sVal = sVal;
}
示例11: ReadData
public string ReadData(MCS.GuiHub.GuiCommand Tag, int session)
{
return ReadData(Tag, session, Ice.ObjectImpl.defaultCurrent);
}