本文整理汇总了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);
}
}
开发者ID:JiangJunGG,项目名称:SyAutoH,代码行数:10,代码来源:DataHubCallbackI.cs
示例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__);
}
}
开发者ID:JiangJunGG,项目名称:SyAutoH,代码行数:58,代码来源:iGuiHub.cs
示例3: EraseDataUpdater
public void EraseDataUpdater(MCS.GuiDataUpdaterPrx updater, _System.Collections.Generic.Dictionary<string, string> context__)
{
EraseDataUpdater(updater, context__, true);
}
开发者ID:JiangJunGG,项目名称:SyAutoH,代码行数:4,代码来源:iGuiHub.cs
示例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();
}
开发者ID:JiangJunGG,项目名称:SyAutoH,代码行数:10,代码来源:iGuiHub.cs
示例5: UpdateData_completed__
private void UpdateData_completed__(MCS.Callback_GuiDataUpdater_UpdateData cb__)
{
if(cb__ != null)
{
cb__();
}
}
开发者ID:JiangJunGG,项目名称:SyAutoH,代码行数:7,代码来源:iGuiHub.cs
示例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__);
}
开发者ID:JiangJunGG,项目名称:SyAutoH,代码行数:4,代码来源:iGuiHub.cs
示例7: UpdateData
public void UpdateData(long time, MCS.GuiDataItem data, _System.Collections.Generic.Dictionary<string, string> context__)
{
UpdateData(time, data, context__, true);
}
开发者ID:JiangJunGG,项目名称:SyAutoH,代码行数:4,代码来源:iGuiHub.cs
示例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__;
}
开发者ID:JiangJunGG,项目名称:SyAutoH,代码行数:43,代码来源:iGuiHub.cs
示例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__);
}
}
开发者ID:JiangJunGG,项目名称:SyAutoH,代码行数:41,代码来源:iGuiHub.cs
示例10: GuiDataItem
public GuiDataItem(MCS.GuiHub.PushData enumTag, string sVal)
{
this.enumTag = enumTag;
this.sVal = sVal;
}
开发者ID:JiangJunGG,项目名称:SyAutoH,代码行数:5,代码来源:iGuiHub.cs
示例11: ReadData
public string ReadData(MCS.GuiHub.GuiCommand Tag, int session)
{
return ReadData(Tag, session, Ice.ObjectImpl.defaultCurrent);
}
开发者ID:JiangJunGG,项目名称:SyAutoH,代码行数:4,代码来源:iGuiHub.cs
注:本文中的MCS.MCS类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论