1

Closed

Add Output Iterator Stages

description

In addition to CCR iterators CCR Flows should support an "Output Iterator" which is simpler and dedicated. CCR iterators allow for arbitrary yielding whenever a stage handler sees fit. But an "Output Iterator" yields for every output value, e.g.
 
IEnumerable<TOut> HandleInput(TIn input)
{
...
yield return outputValue0;
...
yield return outputValue1;
...
}
 
This is much easier to understand than CCR iterators.
 
The CCR Flows need to implement a CCR iterator to handle this.
Closed Jul 8, 2009 at 12:05 AM by ralfw
Message handlers can return IEnumerator<TOut> and pass on values using yield return.

comments