Exemplo n.º 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);
        }
 public static ProducerBuilder <T> DefaultQueue <T>(this ProducerBuilder <T> producerBuilder, string queue)
 {
     producerBuilder.DefaultTopic(queue);
     producerBuilder.ToQueue();
     return(producerBuilder);
 }