Exemplo n.º 1
0
 public override void Configure(RecipeExecutionStepConfigurationContext context) {
     BatchSize = context.ConfigurationElement.Attr<int?>("BatchSize");
 }
Exemplo n.º 2
0
 public virtual void Configure(RecipeExecutionStepConfigurationContext context) {
 }
Exemplo n.º 3
0
        public override void Configure(ImportActionConfigurationContext context)
        {
            ResetSite = context.ConfigurationElement.Attr<bool>("ResetSite");
            SuperUserPassword = context.ConfigurationElement.Attr("SuperUserPassword");

            var executionStepsElement = context.ConfigurationElement.Element("Steps");
            if (executionStepsElement == null)
                return;

            foreach (var stepElement in executionStepsElement.Elements()) {
                var step = _recipeExecutionSteps.SingleOrDefault(x => x.Name == stepElement.Name.LocalName);

                if (step != null) {
                    var stepContext = new RecipeExecutionStepConfigurationContext(stepElement);
                    step.Configure(stepContext);
                }
            }
        }