public PipelineStage(IPipeline pipeline) { _enumerator = new ResumableIterator <ContributorCall, Type>( new List <ContributorCall>(pipeline.CallGraph).GetEnumerator(), x => x.Target != null ? x.Target.GetType() : null, (contributorType, key) => key != null && key.IsAssignableFrom(contributorType)); }
public PipelineStage(IPipeline pipeline) { CurrentState = PipelineContinuation.Continue; _enumerator = new ResumableIterator <ContributorCall, Type>( new List <ContributorCall>(pipeline.CallGraph).GetEnumerator(), x => x.Target?.GetType(), (contributorType, key) => key != null && key.IsAssignableFrom(contributorType)); }
void when_enumerating_values(ResumableIterator <int, int> iterator) { _resulting = new List <int>(); _resulting.AddRange(iterator); }
private void when_enumerating_values(ResumableIterator<int, int> iterator) { this.resulting = new List<int>(); this.resulting.AddRange(iterator); }