Beispiel #1
0
 public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
 {
     foreach (var specification in _specifications)
     {
         specification.Apply(builder);
     }
 }
        public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
        {
            var exchangeHandle = builder.ExchangeDeclare(ExchangeName, ExchangeType, Durable, AutoDelete, ExchangeArguments);

            var queueHandle = builder.QueueDeclare(QueueName, Durable, AutoDelete, Exclusive, QueueArguments);

            var bindingHandle = builder.QueueBind(exchangeHandle, queueHandle, RoutingKey, BindingArguments);
        }
        public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
        {
            foreach (var specification in _specifications)
            {
                specification.Apply(builder);
            }

            ForEach <IActiveMqMessageConsumeTopologyConfigurator>(x => x.Apply(builder));
        }
        public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
        {
            var topicHandle = builder.CreateTopic(EntityName, Durable, AutoDelete);

            var builderQueue = builder.Queue.Queue;
            var queueHandle  = builder.CreateQueue(builderQueue.EntityName, builderQueue.Durable, builderQueue.AutoDelete);

            var topicSubscriptionHandle = builder.CreateTopicSubscription(topicHandle, queueHandle);
        }
Beispiel #5
0
        public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
        {
            var topic = builder.CreateTopic(_topicDescription);

            var subscriptionDescription = _subscriptionDescription;

            subscriptionDescription.ForwardTo = builder.Queue.Queue.QueueDescription.Path;

            builder.CreateQueueSubscription(topic, builder.Queue, subscriptionDescription, _rule, _filter);
        }
        public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
        {
            var exchangeHandle = builder.CreateTopic(EntityName, Durable, AutoDelete);

            var consumerQueueName = _consumerName.Replace("{queue}", builder.Queue.Queue.EntityName);

            var queue = builder.CreateQueue(consumerQueueName, Durable, AutoDelete);

            var consumer = builder.BindConsumer(exchangeHandle, queue, Selector);
        }
        public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
        {
            var topic = builder.CreateTopic(_topicDescription);

            var subscriptionDescription = _subscriptionDescription;

            subscriptionDescription.ForwardTo = builder.Queue.Queue.QueueDescription.Path;
            subscriptionDescription.Name      = GetSubscriptionName(subscriptionDescription.Name, builder.Queue.Queue.QueueDescription.Path);

            var queueSubscription = builder.CreateQueueSubscription(topic, builder.Queue, subscriptionDescription);
        }
Beispiel #8
0
        public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
        {
            var topic = builder.CreateTopic(EntityName, Durable, AutoDelete);

            var destinationQueue = builder.Queue.Queue;

            var consumerQueueName = _consumerName.Replace("{queue}", destinationQueue.EntityName);

            var queue = builder.CreateQueue(consumerQueueName, destinationQueue.Durable, destinationQueue.AutoDelete);

            var consumer = builder.BindConsumer(topic, queue, Selector);
        }
Beispiel #9
0
        public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
        {
            var source = _binding.Source;

            var sourceHandle = builder.ExchangeDeclare(source.ExchangeName, source.ExchangeType, source.Durable, source.AutoDelete, source.ExchangeArguments);

            var destination = _binding.Destination;

            var destinationHandle = builder.ExchangeDeclare(destination.ExchangeName, destination.ExchangeType, destination.Durable, destination.AutoDelete,
                                                            destination.ExchangeArguments);

            var bindingHandle = builder.ExchangeBind(sourceHandle, destinationHandle, _binding.RoutingKey, _binding.Arguments);
        }
Beispiel #10
0
        public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
        {
            var destinationQueue = builder.Queue.Queue;

            var topicName = EntityName;

            var consumerEndpointQueueName = _consumerEndpointQueueNameFormatter != null
                ? _consumerEndpointQueueNameFormatter.Format(topicName, destinationQueue.EntityName)
                : $"Consumer.{destinationQueue.EntityName}.{EntityName}";


            var topic = builder.CreateTopic(EntityName, Durable, AutoDelete);

            var queue = builder.CreateQueue(consumerEndpointQueueName, destinationQueue.Durable, destinationQueue.AutoDelete);

            var consumer = builder.BindConsumer(topic, queue, Selector);
        }
 public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
 {
 }
        public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
        {
            var topicHandle = builder.CreateTopic(EntityName, Durable, AutoDelete, TopicAttributes, TopicSubscriptionAttributes, Tags);

            var topicSubscriptionHandle = builder.CreateQueueSubscription(topicHandle, builder.Queue);
        }
        public void Apply(IReceiveEndpointBrokerTopologyBuilder builder)
        {
            var exchangeHandle = builder.ExchangeDeclare(_exchangeName, _exchangeType, _durable, _autoDelete, _exchangeArguments);

            var bindingHandle = builder.ExchangeBind(exchangeHandle, builder.Exchange, _routingKey, _bindingArguments);
        }