Exemple #1
0
        public IEnumerator Execute()
        {
            var store = GraphDictionary.Reserve();

            yield return(Execute(store));

            GraphDictionary.Release(store);
        }
Exemple #2
0
        public IEnumerator Execute(IVariableDictionary variables)
        {
            if (Graph)
            {
                var store = GraphDictionary.Reserve();
                store.WriteInputs(this, Inputs, variables);
                store.WriteOutputs(Outputs);

                yield return(Graph.Execute(store));

                store.ReadOutputs(this, Outputs, variables);
                GraphDictionary.Release(store);
            }
        }