Example #1
0
        public override void Configure(ExportActionConfigurationContext context)
        {
            RecipeBuilderSteps.Clear();

            var recipeBuilderStepsElement = context.ConfigurationElement.Element("Steps");

            if (recipeBuilderStepsElement == null)
            {
                return;
            }

            foreach (var stepElement in recipeBuilderStepsElement.Elements())
            {
                var step = _recipeBuilderStepResolver.Resolve(stepElement.Name.LocalName);

                if (step != null)
                {
                    var stepContext = new RecipeBuilderStepConfigurationContext(stepElement);
                    step.Configure(stepContext);
                    RecipeBuilderSteps.Add(step);
                }
            }
        }
 public virtual void Configure(ExportActionConfigurationContext context)
 {
 }