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);
        }
Esempio n. 2
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);
        }
Esempio n. 5
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);
        }
Esempio n. 6
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)
        {
            var topicHandle = builder.CreateTopic(EntityName, Durable, AutoDelete, TopicAttributes, TopicSubscriptionAttributes, Tags);

            var topicSubscriptionHandle = builder.CreateQueueSubscription(topicHandle, builder.Queue);
        }