/// <summary> /// Populates the <see cref="RunInvokerTree"/> invoker graph /// with <see cref="IRunInvoker"/> generated by the run. /// </summary> /// <remarks> /// Inherited method from base class Run /// </remarks> /// <param name="tree">Invoker tree.</param> /// <param name="parent">Parent vertex.</param> /// <param name='t'>The <see cref="Type"/> to search for.</param> public void Reflect( RunInvokerTree tree, RunInvokerVertex parent, Type t ) { // for each run foreach (IRun run in this.Runs) { // for each leaf foreach (RunInvokerVertex leaf in tree.Leaves(parent)) { // add runs run.Reflect(tree, leaf, t); } } }
public void Reflect( RunInvokerTree tree, RunInvokerVertex parent, Type t ) { if (this.runs.Count == 0 && !this.allowEmpty) { throw new InvalidOperationException("Parralel run is empty. Missing factory ?"); } // for each leaf foreach (RunInvokerVertex leaf in tree.Leaves(parent)) { // for each run foreach (IRun run in this.Runs) { // add runs run.Reflect(tree, leaf, t); } } }