示例#1
0
文件: Program.cs 项目: matej-hron/POC
 private static void Test3()
 {
     WithMaterializer(m =>
     {
         var result = Factorials.Select(_ => _.ToString()).RunWith(LineSink(), m);
         Console.WriteLine(result.Result);
     });
 }
示例#2
0
文件: Program.cs 项目: matej-hron/POC
        private static void Test2()
        {
            WithMaterializer(materializer =>
            {
                var result =
                    Factorials
                    .Select(num => ByteString.FromString($"{num}\n"))
                    .RunWith(FileIO.ToFile(new FileInfo(@"c:\temp\factorials.txt")), materializer);

                Console.WriteLine(result.Result);
            });
        }