Exemplo n.º 1
0
        public void Add <TSource, TResult>(int workers, int bufferSize, BlockingCollection <TSource> sources,
                                           Action <TSource> action)
        {
            var f = new PipeLineStage <TSource, TResult>(token, workers, bufferSize, sources, action);

            stages.Add(f);
        }
Exemplo n.º 2
0
        public PipeLineStage <TSource, TResult> AddSelectMany <TSource, TResult>(int workers, int bufferSize, IEnumerable <TSource> sources,
                                                                                 Func <TSource, IEnumerable <TResult> > filter)
        {
            var f = new PipeLineStage <TSource, TResult>(token, workers, bufferSize, sources, filter);

            stages.Add(f);
            return(f);
        }
Exemplo n.º 3
0
        public PipeLineStage <TSource, TResult> Add <TSource, TResult>(int workers, int bufferSize, BlockingCollection <TSource> sources,
                                                                       Func <TSource, TResult> filter)
        {
            var f = new PipeLineStage <TSource, TResult>(token, workers, bufferSize, sources, filter);

            stages.Add(f);
            return(f);
        }