Beispiel #1
0
        public Lexicon <TContext> Add(ProducerStep <TContext> step)
        {
            if (step.Name == null)
            {
                throw new ArgumentOutOfRangeException("step", step, "Step name cannot be null.");
            }

            steps.Add(step.Name, step);
            return(this);
        }
Beispiel #2
0
 public SequenceItem(ProducerStep <TContext> step, bool isOptional = false)
 {
     Step       = step;
     IsOptional = isOptional;
 }
Beispiel #3
0
 public StepResult Execute(ProducerStep <TThis> step)
 {
     return(step.Execute(this as TThis));
 }