Class AndPredicate

Assembly: redb.Route.dll

Predicate that performs a logical AND between an expression and another predicate.
Returns true only when both the expression evaluates to true and the predicate matches.

public class AndPredicate : IPredicate

Inheritance

Object→AndPredicate

Implements

Methods

Matches(IExchange)

Evaluates the predicate synchronously against the exchange.

public bool Matches(IExchange exchange)

MatchesAsync(IExchange)

Evaluates the predicate asynchronously against the exchange.

public Task<bool> MatchesAsync(IExchange exchange)

Constructors

AndPredicate(IExpression, IPredicate)

Initializes a new instance combining an expression and a predicate with logical AND.