Class StepRegistry
Collects build steps registered during script execution. Steps are executed in order by WorkflowRunner after script loading.
public class StepRegistry : IStepRegistry
- Inheritance
-
StepRegistry
- Implements
- Inherited Members
Properties
Steps
All registered steps in order of registration. Read-only to prevent external modification.
public IReadOnlyList<BuildStep> Steps { get; }
Property Value
Methods
Clear()
Clears all registered steps. Used in tests to reset state between test runs.
public void Clear()
Register(BuildStep)
Registers a pre-constructed BuildStep.
public void Register(BuildStep step)
Parameters
stepBuildStep
Register(string, Func<Task<bool>>, string?)
Convenience method to register a step inline. Creates a BuildStep from the provided parameters.
public void Register(string name, Func<Task<bool>> execute, string? context = null)