/// <summary> /// Run the script, preserving the state of the engine after execution /// </summary> /// <param name="scriptCode"></param> /// <returns></returns> public async Task RunAsync(string scriptCode) { var afterExecutionState = await EngineState.ContinueWithAsync <object>(scriptCode, _roslynScriptOptions); EngineState = afterExecutionState; }