private bool TryEvaluateScript(FlowScript flowScript, out EvaluationResult evaluationResult) { var evaluator = new Evaluator(); evaluator.Library = Library; evaluator.AddListener(new LoggerPassthroughListener(mLogger)); if (!evaluator.TryEvaluateScript(flowScript, out evaluationResult)) { LogError("Failed to evaluate script"); evaluationResult = null; return(false); } return(true); }