A validation rule that checks whether the process result's exit code is one of the specified allowed exit codes.
public static Func<TProcessResult, bool> RequiresAllowedExitCode(params int[] exitCodes)
The collection of allowed exit codes that the process result can match for the validation to succeed.
TProcessResult as input and
evaluates to true if the exit code matches any in the provided collection; otherwise, false.