示例#1
0
        public void SimplePipeline()
        {
            using (var p = Pipeline.Create("SimplePipeline"))
            {
                var generate  = Generators.Sequence(p, new[] { 0d, 1d }, x => new[] { x[0] + 0.1, x[1] + 0.1 }, 10);
                var transform = new ScalarMultiplier(p, 100);
                generate.PipeTo(transform);
                transform.Do(a => Console.WriteLine($"[{a[0]}, {a[1]}]"));

                // start and run the pipeline
                p.Run();
            }
        }