Пример #1
0
 private Runtime RunImpl(RuntimeStepType stepType, RuntimeSettings settings = null)
 {
     currentRuntime = CreateRuntimeInstance(settings);
     isRunning      = true;
     isDebugging    = stepType == RuntimeStepType.StepByStep;
     return(currentRuntime.Run(stepType));
 }
Пример #2
0
        public Runtime Run(RuntimeStepType stepType)
        {
            if (stepType == RuntimeStepType.Complete)
            {
                RunToEnd();
            }
            else if (stepType == RuntimeStepType.StepByStep)
            {
                RunNextStep();
            }
            else
            {
                throw new NotImplementedException();
            }

            return(this);
        }