コード例 #1
0
        private void PrepareRecipe(XDocument recipeDocument)
        {
            var query =
                from stepElement in recipeDocument.Element("Orchard").Elements()
                let step = _recipeExecutionSteps.SingleOrDefault(x => x.Name == stepElement.Name.LocalName)
                           where step != null
                           select new { Step = step, StepElement = stepElement };

            foreach (var step in query)
            {
                var context = new UpdateRecipeExecutionStepContext {
                    Step = step.StepElement
                };
                step.Step.UpdateStep(context);
            }
        }
コード例 #2
0
 public override void UpdateStep(UpdateRecipeExecutionStepContext context)
 {
     SetBatchSizeForDataStep(context.Step, BatchSize);
 }