public static IPipelineReader ReadFile(this PipelineFactory factory, string path)
        {
            var reader = factory.Create();

            var file = new FileReader(reader);
            file.OpenReadFile(path);
            return file;
        }
示例#2
0
        public static IPipeReader ReadFile(this PipeFactory factory, string path)
        {
            var pipe = factory.Create();
            var file = new FileReader(pipe.Writer);

            file.OpenReadFile(path);
            return(pipe.Reader);
        }
示例#3
0
        public static IPipelineReader ReadFile(this PipelineFactory factory, string path)
        {
            var reader = factory.Create();

            var file = new FileReader(reader);

            file.OpenReadFile(path);
            return(file);
        }