API Reference
Interface
IRuleExecutionMiddleware
Allows hooking into step execution to provide cross-cutting functionality.
Methods
public abstract Task<StepResult> InvokeAsync(RuleComplete rule, RuleExecutionContext context, IRuleExecutionStep step, StepResult previousResult, Func<Task<StepResult>> next) #Returns:
Task<StepResult>Invokes the middleware for the current step.
Parameters
- rule TestimoX.Definitions.RuleComplete
- Rule being executed.
- context TestimoX.Execution.RuleExecutionContext
- Execution context.
- step TestimoX.Execution.Pipeline.IRuleExecutionStep
- The pipeline step.
- previousResult TestimoX.Execution.Pipeline.StepResult
- Result from the previous step.
- next System.Func{System.Threading.Tasks.Task{TestimoX.Execution.Pipeline.StepResult}}
- Delegate to execute the remainder of the pipeline.
Returns
The result of the step execution.