Exemplo n.º 1
0
        public static IParsed <TInput, TModel, TAccumulator> Parse <TInput, TModel, TAccumulator>(this IPipe <TInput, TModel, TAccumulator> pipeline, Func <IPipeFilter <TInput, TModel, TAccumulator> > parseFilterFactory)
        {
            var parser = parseFilterFactory.Invoke();

            pipeline.RegisterFilter(parser);

            return(new Parsed <TInput, TModel, TAccumulator>(pipeline));
        }