PageRenderTime 383ms CodeModel.GetById 181ms app.highlight 1ms RepoModel.GetById 200ms app.codeStats 0ms

/Rhino.Etl.Tests/LoadTest/AccumulateResults.cs

http://github.com/ayende/rhino-etl
C# | 20 lines | 18 code | 2 blank | 0 comment | 0 complexity | 39ff235ab442fd23222748423c4f21be MD5 | raw file
 1namespace Rhino.Etl.Tests.LoadTest
 2{
 3    using System.Collections.Generic;
 4    using Core;
 5    using Core.Operations;
 6
 7    public class AccumulateResults : AbstractOperation
 8    {
 9        public int count = 0;
10
11        public override IEnumerable<Row> Execute(IEnumerable<Row> rows)
12        {
13            foreach (Row row in rows)
14            {
15                count += 1;
16            }
17            yield break;
18        }
19    }
20}