Table of Contents

Class StepRegistry

Namespace
Ando.Steps
Assembly
ando.dll

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

IReadOnlyList<BuildStep>

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

step BuildStep

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)

Parameters

name string

Step type name (e.g., "Dotnet.Build").

execute Func<Task<bool>>

Async function that performs the step.

context string

Optional context (e.g., project name) for logging.