/// <summary> /// Starts the engine with the arguments passed /// </summary> /// <param name="TheAction">The type of init action the engine will start with</param> /// <param name="TheDisplay">The way the engine will initialize the display</param> /// <param name="TheRestart">???</param> public void StartUXInterface(SETUP_ACTION TheAction, SETUP_DISPLAY TheDisplay, SETUP_RESTART TheRestart) { SETUP_COMMAND InitCommand = new SETUP_COMMAND(); InitCommand.action = TheAction; InitCommand.display = TheDisplay; InitCommand.restart = TheRestart; StartUXInterface(InitCommand); }
/// <summary> /// Starts the engine with the specified SETUP_COMMAND object /// </summary> /// <param name="TheCommand">The init command object that contains the Action, Display and Restart enum values</param> public void StartUXInterface(SETUP_COMMAND TheCommand) { EngineLogger.WriteLog(LoggingLevel.TRACE, "Starting worker thread"); this.StillRunning = true; this.RunMessageManager = true; this.AsyncManagerThread.Start(); EngineLogger.WriteLog(LoggingLevel.TRACE, "Calling CFrostEngine.CreateUX(0, SETUP_COMMAND, ref IFrostUserExperience)"); EngineLogger.WriteLog(LoggingLevel.INFO, "SETUP_COMMAND.action: ", TheCommand.action, Environment.NewLine); EngineLogger.WriteLog(LoggingLevel.INFO, "SETUP_COMMAND.display: ", TheCommand.display, Environment.NewLine); EngineLogger.WriteLog(LoggingLevel.INFO, "SETUP_COMMAND.restart: ", TheCommand.restart, Environment.NewLine); HRESULTS CreateUXReturn = CFrostEngine.CreateUX(0, TheCommand, ref this.BurnUXInterface); if (CreateUXReturn != HRESULTS.HR_S_OK) { throw new FrostException("Error while calling UXTestWrapper.CreateUX() returned ", CreateUXReturn.ToString()); } EngineLogger.WriteLog(LoggingLevel.TRACE, "Calling IFrostUserExperience.Initialize(int, SETUP_RESUME)"); EngineLogger.WriteLog(LoggingLevel.INFO, "InitCommandShow: ", this.InitCommandShow); EngineLogger.WriteLog(LoggingLevel.INFO, "InitCommandResume: ", this.InitCommandResume); HRESULTS UXInitReturn = BurnUXInterface.Initialize(this.InitCommandShow, this.InitCommandResume); if (UXInitReturn != HRESULTS.HR_S_OK) { throw new FrostException("Error while calling IBurnUX.Initialize(", this.InitCommandShow.ToString(), ") returned ", UXInitReturn.ToString()); } EngineLogger.WriteLog(LoggingLevel.TRACE, "Calling IFrostUserExperience.Run()"); HRESULTS UXRunReturn = BurnUXInterface.Run(); if (UXInitReturn != HRESULTS.HR_S_OK) { throw new FrostException("Error while calling IBURNUX.Run() returned ", UXRunReturn.ToString()); } }
/// <summary> /// Starts the engine with the specified InitCommand values in the manifest's test case. /// </summary> public void StartUXInterface() { SETUP_COMMAND InitCommand = new SETUP_COMMAND(); InitCommand.action = this.InitCommandAction; InitCommand.display = this.InitCommandDisplay; InitCommand.restart = this.InitCommandRestart; StartUXInterface(InitCommand); }