Akka.Cluster.Sharding.Tests.ClusterShardingSpec.ClusterSharding_should_support_passivation_and_activation_of_entities C# (CSharp) Метод

ClusterSharding_should_support_passivation_and_activation_of_entities() приватный Метод

        public void ClusterSharding_should_support_passivation_and_activation_of_entities()
        {
            ClusterSharding_should_use_second_node();

            RunOn(() =>
            {
                var r = _region.Value;
                r.Tell(new Counter.Get(2));
                ExpectMsg(3); //TODO: shouldn't we tell increment 3x first?
                r.Tell(new Counter.EntityEnvelope(2, ReceiveTimeout.Instance));
                // let the Passivate-Stop roundtrip begin to trigger buffering of subsequent messages
                Thread.Sleep(200);
                r.Tell(new Counter.EntityEnvelope(2, Counter.Increment.Instance));
                r.Tell(new Counter.Get(2));
                ExpectMsg(4);
            }, _second);
            EnterBarrier("after-4");
        }