Ejemplo n.º 1
0
        public FusionUtility(FusionContext Context)
        {
            activities = new List <BaseActivity>();

            activities.Add(new SelectionActivity());
            activities.Add(new ProjectionActivity());

            this.Context = Context;
        }
Ejemplo n.º 2
0
        public override void Execute(TreeBuilder tree, FusionContext context)
        {
            var root           = tree.Root;
            var projectionNode = new ProjectionNode()
            {
                ChildNode = root
            };

            tree.Root = projectionNode;
        }
Ejemplo n.º 3
0
        public TreeBuilder BuildTree(FusionContext context)
        {
            TreeBuilder tree = new TreeBuilder()
            {
                Root = new BaseNode()
            };

            foreach (var activity in activities)
            {
                activity.Execute(tree, context);
            }

            return(tree);
        }
Ejemplo n.º 4
0
 public abstract void Execute(TreeBuilder tree, FusionContext context);