/// <summary> /// Indicates that all members of the enumerable must happen before the single follower /// </summary> /// <param name="predecessors">The predecessors.</param> /// <param name="follower">The follower.</param> /// <returns>the followers</returns> public static OrderedProcess <T> Before <T>(this IEnumerable <OrderedProcess <T> > predecessors, OrderedProcess <T> follower) { follower.After(predecessors); return(follower); }
/// <summary> /// Indicates that this process should execute before another /// </summary> /// <param value="follower">The ancestor.</param> /// <returns>returns this process</returns> public OrderedProcess <T> Before(OrderedProcess <T> follower) { DependencyGraph <T> .CheckGraph(this, follower); if (_followers.Add(follower)) { follower.After(this); } return(follower); }