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); }
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(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); }
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); }