Beispiel #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 = _recipeBuilderSteps.SingleOrDefault(x => x.Name == stepElement.Name.LocalName);

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