Akka.Cluster.Tools.Tests.MultiNode.ClusterClient.ClusterClientSpec.ClusterClient_should_communicate_to_any_node_in_cluster C# (CSharp) Method

ClusterClient_should_communicate_to_any_node_in_cluster() public method

        public void ClusterClient_should_communicate_to_any_node_in_cluster()
        {
            ClusterClient_should_startup_cluster();

            Within(TimeSpan.FromSeconds(10), () =>
            {
                RunOn(() =>
                {
                    var c = Sys.ActorOf(Client.ClusterClient.Props(ClusterClientSettings.Create(Sys).WithInitialContacts(InitialContacts)), "client1");
                    c.Tell(new Client.ClusterClient.Send("/user/testService", "hello", localAffinity: true));
                    ExpectMsg("hello-ack");
                    Sys.Stop(c);
                }, _client);

                RunOn(() =>
                {
                    ExpectMsg("hello");
                }, _fourth);

                EnterBarrier("after-2");
            });
        }