コード例 #1
0
        public void Fusing_must_properly_fuse_a_FusedGraph_that_has_been_extended_with_AsyncBoundary()
        {
            var src   = Fusing.Aggressive(Graph(true));
            var fused = Fusing.Aggressive(Source.FromGraph(src).To(Sink.First <int>()));

            Verify(fused, modules: 2, downstreams: 6);
        }
コード例 #2
0
        public void Fusing_must_not_fuse_accross_AsyncBoundary()
        {
            var g     = Graph(true);
            var fused = Fusing.Aggressive(g);

            Verify(fused, modules: 2, downstreams: 5);
        }
コード例 #3
0
        public void Fusing_must_fuse_a_moderately_complex_graph()
        {
            var g     = Graph(false);
            var fused = Fusing.Aggressive(g);

            Verify(fused, modules: 1, downstreams: 5);
        }
コード例 #4
0
ファイル: currency.cs プロジェクト: danis420/AutismFlipper
 public Currency(Blacksmith_whetstone blacksmith_whetstone, Armourer_scrap armourer_scrap, Glassblower_bauble glassblower_bauble, Gemcutter_prism gemcutter_prism, Cartographer_chisel cartographer_chisel, Transmutation transmutation, Alteration alteration, Annulment annulment, Chance chance, Augment augment, Exalted exalted, Mirror mirror, Regal regal, Alchemy alchemy, Chaos chaos, Blessed blessed, Divine divine, Jeweller jeweller, Fusing fusing, Chromatic chromatic, Scouring scouring, Regret regret, Vaal vaal, Silver_coin silver_coin, Perandus_coin perandus_coin, Apprentice_sextant apprentice_sextant, Journeyman_sextant journeyman_sextant, Master_sextant master_sextant)
 {
     this.blacksmith_whetstone = blacksmith_whetstone;
     this.armourer_scrap       = armourer_scrap;
     this.glassblower_bauble   = glassblower_bauble;
     this.gemcutter_prism      = gemcutter_prism;
     this.cartographer_chisel  = cartographer_chisel;
     this.transmutation        = transmutation;
     this.alteration           = alteration;
     this.annulment            = annulment;
     this.chance             = chance;
     this.augment            = augment;
     this.exalted            = exalted;
     this.mirror             = mirror;
     this.regal              = regal;
     this.alchemy            = alchemy;
     this.chaos              = chaos;
     this.blessed            = blessed;
     this.divine             = divine;
     this.jeweller           = jeweller;
     this.fusing             = fusing;
     this.chromatic          = chromatic;
     this.scouring           = scouring;
     this.regret             = regret;
     this.vaal               = vaal;
     this.silver_coin        = silver_coin;
     this.perandus_coin      = perandus_coin;
     this.apprentice_sextant = apprentice_sextant;
     this.journeyman_sextant = journeyman_sextant;
     this.master_sextant     = master_sextant;
 }
コード例 #5
0
ファイル: Program.cs プロジェクト: matej-hron/POC
        private static void TestFussion()
        {
            var flow  = Flow.Create <int>().Select(x => x * 2).Where(x => x > 500);
            var fused = Fusing.Aggressive(flow);
            var s     = Source.From(Enumerable.Range(0, int.MaxValue)).Via(fused).Take(1000);

            WithMaterializer(m => s.RunForeach(x => Console.WriteLine(x), m)).Wait();
        }
コード例 #6
0
 private static RunnableGraph <TestLatch> Fuse(IRunnableGraph <TestLatch> graph)
 => RunnableGraph.FromGraph(Fusing.Aggressive(graph));
コード例 #7
0
        public void Fusing_must_not_fuse_a_FusedGraph_again()
        {
            var g = Fusing.Aggressive(Graph(false));

            Fusing.Aggressive(g).Should().BeSameAs(g);
        }
コード例 #8
0
 private static IGraph <SourceShape <int>, NotUsed> CreateSource(int count)
 => Fusing.Aggressive(Source.Repeat(1).Take(count));