Class OrPredicate

Assembly: redb.Route.dll

Predicate that performs a logical OR between an expression and another predicate.
Returns true when either the expression evaluates to true or the predicate matches.

public class OrPredicate : IPredicate

Inheritance

Object→OrPredicate

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

OrPredicate(IExpression, IPredicate)

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