Class LambdaPredicate
Predicate that wraps a delegate for inline predicate logic.
public class LambdaPredicate : IPredicate
Inheritance
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.