本文整理汇总了C#中IController.SetClassifications方法的典型用法代码示例。如果您正苦于以下问题:C# IController.SetClassifications方法的具体用法?C# IController.SetClassifications怎么用?C# IController.SetClassifications使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IController
的用法示例。
在下文中一共展示了IController.SetClassifications方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ScenarioControllerLoop
//.........这里部分代码省略.........
{
throw new ControllerException(Fmt_ErrorMsg("MuteUser", e.Message));
}
break;
case "UnmuteUser":
try
{
if (receiver is IVoiceClientController)
{
string strUsername = ((StringValue)vpEvent["Speaker"]).value;
string strChannelName = ((StringValue)vpEvent["ChannelName"]).value;
if (strChannelName.Length > 0)
{
((IVoiceClientController)receiver).NotifyUnmuteUser(strUsername, strChannelName);
}
}
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("UnmuteUser", e.Message));
}
break;
case "ForkReplayStarted":
DDD_Global.Instance.IsForkReplay = true;
break;
case "ForkReplayFinished":
DDD_Global.Instance.IsForkReplay = false;
break;
case "InitializeClassifications":
//Time, Classifications
try
{
List<String> classificationEnumeration = ((StringListValue)vpEvent["Classifications"]).strings;
receiver.SetClassifications(classificationEnumeration);
}
catch (Exception e)
{
throw new ControllerException(Fmt_ErrorMsg("UnmuteUser", e.Message));
}
break;
default:
break;
}
}
System.Threading.Thread.Sleep(100); //control this loop so it doesn't chew through processor cycles
}
else
{
if (InformServerDisconnect || DemoEvents == null)
{
// TBD - through server lost exception.
throw new ServerDisconnectException("The client and server have been disconnected.");
}
lock (this)
{
foreach (SimulationEvent vpEvent in DemoEvents)
{
switch (vpEvent.eventType)
{
case "TimeTick":
break;
case "MoveObjectRequest":
if (((StringValue)vpEvent.parameters["ObjectID"]).value != null)
{