Class WhenClause

Assembly: redb.Route.dll

A single condition-action pair used by .
When the predicate matches, the associated processor executes.

public class WhenClause

Inheritance

Object→WhenClause

Properties

Condition

The condition of this branch, awaited through .

public IPredicate Condition { get; }

Predicate

Predicate to evaluate against the exchange.

public Func<IExchange, bool> Predicate { get; }

Processor

Processor to execute when the predicate is true.

public IProcessor Processor { get; }

Constructors

WhenClause(Func<IExchange, bool>, IProcessor)

Creates a clause from a delegate, wrapped as a .

WhenClause(IPredicate, IProcessor)

Creates a when clause with a predicate and action.