API Reference
Class
RuleExecutionPipeline
Executes rules using discrete pipeline steps, with optional middleware.
Inheritance
- Object
- RuleExecutionPipeline
Constructors
public RuleExecutionPipeline() #Initializes the default pipeline ordering (validation → environment → LDAP preflight → method → result → tests).
Methods
public async Task<RuleExecutionResult> ExecuteAsync(RuleComplete rule, RuleExecutionContext context) #Returns:
Task<RuleExecutionResult>Executes the configured pipeline for the specified rule.
Parameters
- rule TestimoX.Definitions.RuleComplete
- Rule to execute.
- context TestimoX.Execution.RuleExecutionContext
- Execution context.
Returns
Result of rule execution.
ShouldContinue(TestimoX.Execution.Pipeline.StepResult result) #Determines whether pipeline execution should continue to the next step.
Parameters
- result TestimoX.Execution.Pipeline.StepResult
- Result of the current step.
Returns
true to continue execution; otherwise, false.
public Void Use(IRuleExecutionMiddleware middleware) #Returns:
VoidAdds middleware to the execution pipeline.
Parameters
- middleware TestimoX.Execution.Pipeline.Middleware.IRuleExecutionMiddleware
- Middleware instance.