public Batch[] Component(params Batch[] batches)
        {
            Batch asBatch = delegate
            {
                var componentNode = new ComponentNode
                {
                    Name = NodeWriter.ExtractName
                };

                NodeWriter.WriteStartNode(componentNode);
                ExecuteBatches(batches);
                NodeWriter.WriteEndNode();

                return(null);
            };

            asBatch.Ignore();

            return(new[] { asBatch });
        }
 public ComponentEvaluationScope(ComponentNode componentNode)
 {
     _componentNode = componentNode;
     _previous = (ComponentEvaluationScope) Local.Data[CurrentComponentEvaluationScopeKey];
     Local.Data[CurrentComponentEvaluationScopeKey] = this;
 }
Example #3
0
 public ComponentEvaluationScope(ComponentNode componentNode)
 {
     _componentNode = componentNode;
     _previous      = (ComponentEvaluationScope)Local.Data[CurrentComponentEvaluationScopeKey];
     Local.Data[CurrentComponentEvaluationScopeKey] = this;
 }