Class ValidatePredicateDefinition

Assembly: redb.Route.dll

Leaf definition that validates the exchange using a predicate function.

public sealed class ValidatePredicateDefinition : ProcessorDefinition, IProcessorDefinition

Inheritance

Object→ProcessorDefinition→ValidatePredicateDefinition

Implements

Inherited Members

Properties

ErrorMessage

Gets the error message used when validation fails.

public string ErrorMessage { get; }

ThrowOnFailure

Gets whether a validation failure throws an exception.

public bool ThrowOnFailure { get; }

Methods

CreateProcessor(IRouteContext)

Compile this node into a runtime processor.

public override IProcessor CreateProcessor(IRouteContext context)

Constructors

ValidatePredicateDefinition(Func<IExchange, bool>, string, bool)

Creates a validate definition from a delegate, wrapped as a .

ValidatePredicateDefinition(IPredicate, string, bool)

Creates a validate definition from a predicate.