ValidationRules Property

Definition

Namespace CliInvoke.Core
Assembly CliInvoke.Core.dll

Gets the self-describing validation rules applied to the process result after the process exits.

public ValidationRule<ProcessResult>[] ValidationRules { get; init; }

Returns

CliInvoke.Core.Validation.ValidationRule{CliInvoke.Core.ProcessResult}[]

Remarks

These rules are evaluated by the invocation pipeline once the process result is produced. A failing rule causes the pipeline to throw a ProcessValidationException. This property is intentionally excluded from ProcessExitConfiguration's Equals method. /> and GetHashCode() because validation rules are delegate-based and are not value-compared.