PageRenderTime 480ms CodeModel.GetById 120ms app.highlight 1ms RepoModel.GetById 190ms app.codeStats 1ms

/Rhino.Etl.Core/Pipelines/SingleThreadedPipelineExecuter.cs

http://github.com/ayende/rhino-etl
C# | 22 lines | 13 code | 1 blank | 8 comment | 0 complexity | 62987f979c70b0d95e666da42f937f39 MD5 | raw file
 1namespace Rhino.Etl.Core.Pipelines
 2{
 3    using System.Collections.Generic;
 4    using Enumerables;
 5    using Operations;
 6
 7    /// <summary>
 8    /// Executes the pipeline on a single thread
 9    /// </summary>
10    public class SingleThreadedPipelineExecuter : AbstractPipelineExecuter
11    {
12        /// <summary>
13        /// Add a decorator to the enumerable for additional processing
14        /// </summary>
15        /// <param name="operation">The operation.</param>
16        /// <param name="enumerator">The enumerator.</param>
17        protected override IEnumerable<Row> DecorateEnumerableForExecution(IOperation operation, IEnumerable<Row> enumerator)
18        {
19            return new CachingEnumerable<Row>(new EventRaisingEnumerator(operation, enumerator));
20        }
21    }
22}