public static AppRunner StopAfter(this AppRunner runner, MiddlewareStep step) => runner.Configure(cfg => cfg.UseMiddleware((c, n) => ExitCodes.Success, step + 1));
public Step(string name, MiddlewareStep step) { this.name = name; this.step = step; }
protected bool Equals(MiddlewareStep other) { return Stage == other.Stage && OrderWithinStage == other.OrderWithinStage; }