예제 #1
0
        public void durably()
        {
            var router = new RabbitMqTopicRouter("numbers");

            var configuration = new TopicRouterConfiguration <RabbitMqSubscriberConfiguration>(router, new JasperOptions().Endpoints);

            configuration.DurablyStoreAndForward();

            router.Mode.ShouldBe(EndpointMode.Durable);
        }
        public void durably()
        {
            var router = new RabbitMqTopicRouter("numbers");

            var configuration = new TopicRouterConfiguration <RabbitMqSubscriberConfiguration>(router, new JasperOptions().Endpoints);

            configuration.Durably();

            router.IsDurable.ShouldBeTrue();
        }
예제 #3
0
        public void inline()
        {
            var router = new RabbitMqTopicRouter("numbers");

            router.Mode = EndpointMode.BufferedInMemory;

            var configuration = new TopicRouterConfiguration <RabbitMqSubscriberConfiguration>(router, new JasperOptions().Endpoints);

            configuration.SendInline();

            router.Mode.ShouldBe(EndpointMode.Inline);
        }
        public void lightweight()
        {
            var router = new RabbitMqTopicRouter("numbers");

            router.IsDurable = true;

            var configuration = new TopicRouterConfiguration <RabbitMqSubscriberConfiguration>(router, new JasperOptions().Endpoints);

            configuration.Lightweight();

            router.IsDurable.ShouldBeFalse();
        }