Ejemplo n.º 1
0
        internal DefaultEngineTask(EngineCore engine, EngineNode adaptor)
        {
            Guard.AssertNotNull(engine, "engine");
            Guard.AssertNotNull(adaptor, "adaptor");

            this.engine = engine;
            DirtyNode = adaptor;
        }
Ejemplo n.º 2
0
        public void Bind()
        {
            EngineCounters.Initialize();

            foreach (var vertex in engineGraph.Vertices)
            {
                var node = Builder.CreateNode(vertex);
                var nodeName = node.Name;

                var engineNode = new EngineNode(this, node, vertex);
                engineNodeMap.Add(nodeName, engineNode);

                if (engineNode.Node is IActiveNode)
                {
                    ++countOfFirstLoadsOutstanding;

                    engineNode.Activate();
                }
            }

            enginePipeline.Nodes.ForEach(p => p.Bind(this));
        }
Ejemplo n.º 3
0
 internal void MarkNodeAsDirty(EngineNode engineNode)
 {
     Execute(new DefaultEngineTask(this, engineNode));
 }