public async Task Should_receive_complex_pubsub_messages()
        {
            var cluster = await CreateSilosAsync();

            try
            {
                await WaitForClusterSizeAsync(cluster, 3);

                var pubSubs = GetPubSubs(cluster);

                await PubSubTestHelper.PublishComplexValuesAsync(pubSubs, 3);
            }
            finally
            {
                await ReleaseAsync(cluster);
            }
        }
        public async Task Should_not_send_message_to_dead_but_not_unregistered_member()
        {
            var cluster = await CreateSilosAsync();

            try
            {
                var pubSubs = GetPubSubs(cluster);

                await cluster.StopSiloAsync(cluster.Silos[1]);

                await PubSubTestHelper.PublishComplexValuesAsync(pubSubs, 2);
            }
            finally
            {
                await ReleaseAsync(cluster);
            }
        }
        public async Task Should_send_message_to_new_member()
        {
            var cluster = await CreateSilosAsync();

            try
            {
                cluster.StartAdditionalSilo();

                await WaitForClusterSizeAsync(cluster, 4);

                var pubSubs = GetPubSubs(cluster);

                await PubSubTestHelper.PublishComplexValuesAsync(pubSubs, 4);
            }
            finally
            {
                await ReleaseAsync(cluster);
            }
        }
예제 #4
0
        public async Task Should_receive_complex_pubsub_messages()
        {
            var pubSubs = await CreatePubSubsAsync();

            await PubSubTestHelper.PublishComplexValuesAsync(pubSubs, pubSubs.Count, 2000);
        }