Class LoopProcessor
Repeats processing either a fixed number of times or until a predicate returns false.
Supports both count-based and predicate-based looping with optional exchange copy per iteration.
public class LoopProcessor : IProcessor
Inheritance
Implements
Methods
Process(IExchange, CancellationToken)
Processes the exchange asynchronously.
public Task Process(IExchange exchange, CancellationToken ct = default)
Constructors
LoopProcessor(IProcessor, Func<IExchange, bool>, bool, bool)
Creates a predicate-based loop processor.
LoopProcessor(IProcessor, Func<IExchange, int>, bool, bool)
Creates a dynamic count-based loop processor where count is resolved from the exchange at runtime.
LoopProcessor(IProcessor, int, bool, bool)
Creates a count-based loop processor.
LoopProcessor(IProcessor, IPredicate, bool, bool)
Creates a predicate-based loop processor whose condition is awaited before each iteration.