Class LambdaPredicate

Assembly: redb.Route.dll

Predicate that wraps a delegate for inline predicate logic.

public class LambdaPredicate : IPredicate

Inheritance

Object→LambdaPredicate

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

LambdaPredicate(Func<IExchange, bool>)

Initializes a new instance with the specified delegate.