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);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
        }