Example #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);
        }
Example #2
0
 public SequenceItem(ProducerStep <TContext> step, bool isOptional = false)
 {
     Step       = step;
     IsOptional = isOptional;
 }
Example #3
0
 public StepResult Execute(ProducerStep <TThis> step)
 {
     return(step.Execute(this as TThis));
 }