public async Task <Result <IActionStep> > EvaluateStepAsync(IActionStep step, string sourceAction) { await VSPackage.TaskFactory.SwitchToMainThreadAsync(); var transients = GetMacroTransients(); var evaluator = new MacroEvaluator(ProjectProperties, transients, RemoteEnvironment, _project.Options.DebuggerOptions, _dirtyProfile); var actionEvalEnv = new ActionEvaluationEnvironment("", "", _dirtyProfile.General.RunActionsLocally, new DebugServer.IPC.CapabilityInfo(default, default, default), _dirtyProfile.Actions);
private void OnActionStepStarted(IActionStep actionStep) { BeginInvoke(new OnActionStepStarted(SyncActionStepStarted), new object[] { actionStep }); }
private void OnActionStepCompleted(IActionStep actionStep, bool done) { if (actionStep is GameStep_Shopping && done) { BeginInvoke(new OnSaveItemsList(SaveGameItemsList), new object[] { true }); } BeginInvoke(new OnActionStepStarted(SyncActionStepCompleted), new object[] { actionStep }); }
private void ActionLogMessage(IActionStep actionStep, string message) { string stepType = actionStep.GetType().ToString(); string stepName = stepType.Substring(stepType.IndexOf('_') + 1); bool woStepName = !string.IsNullOrEmpty(message) && message[0] == '\t'; message = string.Format("{0}{1}", woStepName ? "" : stepName + ": ", message); tbGeneralLogs.BeginInvoke(new OutLogData(OutActionLogMessage), new object[] { message }); }
private void SyncActionStepStarted(IActionStep actionStep) { string stepType = actionStep.GetType().ToString(); lblActionInProgress.Text = stepType.Substring(stepType.IndexOf('_') + 1); lblActionInProgress.ToolTipText = DateTime.Now.ToString(); }
private void SyncActionStepCompleted(IActionStep actionStep) { lblActionInProgress.ToolTipText = string.Empty; lblActionInProgress.Text = "---"; }
public void OutActionLogMessage(IActionStep actionStep, string message) { if (OutActionsLogs && OnActionLogMessage != null) { OnActionLogMessage(actionStep, message); } }