Esempio n. 1
0
 /// <summary>
 /// Provides an enumerator which traverses the tree (either depth-first or breadth-first)
 /// </summary>
 /// <param name="tree"></param>
 /// <param name="breadthFirst"></param>
 /// <param name="includeRoot"></param>
 /// <returns></returns>
 public static IEnumerable <IConcurrencyResults> Traverse(this IConcurrencyResults tree, bool breadthFirst)
 {
     return(tree.TraverseTree(n => n.CollectChildSets(), null, breadthFirst));
 }
Esempio n. 2
0
 public static IEnumerable <IConcurrencyResults> FindSets(this IConcurrencyResults tree, string segmentName = "op")
 {
     return(tree.TraverseTree(n => n.CollectChildSets(), c => c.SegmentName == segmentName, true));
 }