Method Validate(IExpression, string, bool)

Assembly: redb.Route.dll

Validates the exchange against an expression read as a condition, as Filter and When read one:
Validate(Expr("header.amount > 0")), Validate(Method("#rules", "IsValid(${body})")), where a
Task<bool> method is awaited.

public TSelf Validate(IExpression condition, string errorMessage = "Validation failed", bool throwOnFailure = true)