Akka.Cluster.Tests.MultiNode.Routing.ClusterConsistentHashingRouterSpec.A_cluster_router_with_consistent_hashing_pool_must_deploy_programatically_defined_routees_to_the_member_nodes_in_the_cluster C# (CSharp) Метод

A_cluster_router_with_consistent_hashing_pool_must_deploy_programatically_defined_routees_to_the_member_nodes_in_the_cluster() защищенный Метод

            A_cluster_router_with_consistent_hashing_pool_must_deploy_programatically_defined_routees_to_the_member_nodes_in_the_cluster()
        {
            RunOn(() =>
            {
                var router2 =
                    Sys.ActorOf(
                        new ClusterRouterPool(local: new ConsistentHashingPool(0),
                            settings: new ClusterRouterPoolSettings(totalInstances: 10, maxInstancesPerNode: 2,
                                allowLocalRoutees: true, useRole: null)).Props(Props.Create<ConsistentHashingRouterMultiNodeConfig.Echo>()), "router2");

                //it may take some time until router receives cluster member events
                AwaitAssert(() =>
                {
                    var members = CurrentRoutees(router2).Members.Count();
                    members.ShouldBe(6);
                });
                var routees = CurrentRoutees(router2);
                var routerMembers = routees.Members.Select(x => FullAddress(((ActorRefRoutee)x).Actor)).Distinct().ToList();
                routerMembers.ShouldBe(Roles.Select(GetAddress).ToList());
            }, _config.First);

            EnterBarrier("after-5");
        }