コード例 #1
0
        public static ProducerBuilder <T> DefaultQueue <T>(this ProducerBuilder <T> producerBuilder, string queue)
        {
            if (producerBuilder is null)
            {
                throw new ArgumentNullException(nameof(producerBuilder));
            }
            if (queue is null)
            {
                throw new ArgumentNullException(nameof(queue));
            }

            producerBuilder.DefaultTopic(queue);
            producerBuilder.ToQueue();
            return(producerBuilder);
        }
コード例 #2
0
 public static ProducerBuilder <T> DefaultQueue <T>(this ProducerBuilder <T> producerBuilder, string queue)
 {
     producerBuilder.DefaultTopic(queue);
     producerBuilder.ToQueue();
     return(producerBuilder);
 }