/// <summary> /// Instructs the pipeline to register this step before the <paramref name="id" /> one. /// </summary> public void InsertBefore(string id) { if (Befores == null) { Befores = new List <Dependency>(); } Befores.Add(new Dependency(StepId, id, Dependency.DependencyDirection.Before, true)); }
/// <summary> /// Instructs the pipeline to register this step before the <paramref name="id" /> one. /// </summary> public void InsertBefore(string id) { Guard.AgainstNullAndEmpty(nameof(id), id); if (Befores == null) { Befores = new List <Dependency>(); } Befores.Add(new Dependency(StepId, id, Dependency.DependencyDirection.Before, true)); }
/// <summary> /// Instructs the pipeline to register this step before the <paramref name="id"/> one. If the <paramref name="id"/> does not exist, this condition is ignored. /// </summary> /// <param name="id">The unique identifier of the step that we want to insert before.</param> public void InsertBeforeIfExists(string id) { if (String.IsNullOrEmpty(id)) { throw new ArgumentNullException("id"); } if (Befores == null) { Befores = new List <Dependency>(); } Befores.Add(new Dependency(id, false)); }