Beispiel #1
0
        public static TopicConsumerBuilder <T> Queue <T>(this ConsumerBuilder <T> builder, string queue, Action <TopicConsumerBuilder <T> > topicConfig)
        {
            var b = builder.Queue(queue);

            topicConfig(b);
            return(b);
        }
Beispiel #2
0
        public static TopicConsumerBuilder <T> Queue <T>(this ConsumerBuilder <T> builder, string queue, Action <TopicConsumerBuilder <T> > topicConfig)
        {
            if (builder is null)
            {
                throw new ArgumentNullException(nameof(builder));
            }
            if (topicConfig is null)
            {
                throw new ArgumentNullException(nameof(topicConfig));
            }

            var b = builder.Queue(queue);

            topicConfig(b);
            return(b);
        }