TestimoX

API Reference

Interface

IRuleExecutionMiddleware

Namespace TestimoX.Execution.Pipeline.Middleware
Assembly TestimoX
Modifiers abstract

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 requiredposition: 0
Rule being executed.
context TestimoX.Execution.RuleExecutionContext requiredposition: 1
Execution context.
step TestimoX.Execution.Pipeline.IRuleExecutionStep requiredposition: 2
The pipeline step.
previousResult TestimoX.Execution.Pipeline.StepResult requiredposition: 3
Result from the previous step.
next System.Func{System.Threading.Tasks.Task{TestimoX.Execution.Pipeline.StepResult}} requiredposition: 4
Delegate to execute the remainder of the pipeline.

Returns

The result of the step execution.