Method Validate(IRouteDefinition, string, string, bool)

Assembly: redb.Route.dll

Apache Camel parity: validates the exchange against a condition string, throwing or
flagging when it does not hold. Uses the same condition compilation as Filter and When.

public static IRouteDefinition Validate(this IRouteDefinition self, string condition, string errorMessage = "Validation failed", bool throwOnFailure = true)