private void SetupEngineVariables() { EngineLogger.WriteLog(LoggingLevel.TRACE, "Setting up Init values"); this.InitCommandAction = (SETUP_ACTION)Variables.ValueParser(this.TestCaseEngineDefinitionNode.SelectSingleNode("InitCommand/Action"), true); this.InitCommandDisplay = (SETUP_DISPLAY)Variables.ValueParser(this.TestCaseEngineDefinitionNode.SelectSingleNode("InitCommand/Display"), true); this.InitCommandRestart = (SETUP_RESTART)Variables.ValueParser(this.TestCaseEngineDefinitionNode.SelectSingleNode("InitCommand/Restart"), true); this.InitCommandResume = (SETUP_RESUME)Variables.ValueParser(this.TestCaseEngineDefinitionNode.SelectSingleNode("InitCommand/Resume"), true); this.InitCommandShow = (int)Variables.ValueParser(this.TestCaseEngineDefinitionNode.SelectSingleNode("InitCommand/Show"), true); EngineLogger.WriteLog(LoggingLevel.TRACE, "Setting up Detect Values"); this.DetectExternalCallDescriptor = this.TestCaseEngineDefinitionNode.SelectSingleNode("Detect/ExternalCall"); EngineLogger.WriteLog(LoggingLevel.TRACE, "Setting up Plan Values"); this.PlanExternalCallDescriptor = this.TestCaseEngineDefinitionNode.SelectSingleNode("Plan/ExternalCall"); EngineLogger.WriteLog(LoggingLevel.TRACE, "Setting up apply values"); this.ApplyExternalCallDescriptor = this.TestCaseEngineDefinitionNode.SelectSingleNode("Apply/ExternalCall"); EngineLogger.WriteLog(LoggingLevel.TRACE, "Setting up Suspend values"); this.SuspendExternalCallDescriptor = this.TestCaseEngineDefinitionNode.SelectSingleNode("Suspend/ExternalCall"); EngineLogger.WriteLog(LoggingLevel.TRACE, "Setting up Reboot values"); this.RebootExternalCallDescriptor = this.TestCaseEngineDefinitionNode.SelectSingleNode("Reboot/ExternalCall"); }
/// <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); }
private void PlanEventDelegateFunction(object Caller, SetupActionArgs SAArgs) { EngineLogger.WriteLog(LoggingLevel.TRACE, "Queueing a Plan call"); this.MessageQueueCalls = AsyncCallIDs.Plan; this.PlanCallArgument = SAArgs.SetupAction; EngineLogger.WriteLog(LoggingLevel.TRACE, "Defining return value for Delegate call"); HRESULTS RetVal = (HRESULTS)OptionalNodeProcessing("Plan/DelegateReturnValue", HRESULTS.HR_S_OK); SAArgs.ResultToReturn = RetVal; }