示例#1
0
 public void StopServer()
 {
     if ((scenarioState == ScenarioState.STOPPED && replayState != ScenarioState.STOPPED) ||
         (scenarioState != ScenarioState.STOPPED && replayState == ScenarioState.STOPPED))
     {
         StopScenario(true);
     }
     serverState = ServerState.STOPPED;
     if (ServerOptions.EventLogType != "NOLOG")
     {
         simEngine.StopReplayLogger();
     }
     simEngine.StopTextChatServer();
     simEngine.StopWhiteboardServer();
     simEngine.StopVoiceServer();
     simEngine.StopViewManager();
     simEngine.Stop();
     eventClient = null;
     currentTime = 0;
     isReady     = false;
 }