Esempio n. 1
0
        public static RabbitConsumer Create(RabbitBaseOptions rabbitBaseOptions)
        {
            var consumer = new RabbitConsumer(rabbitBaseOptions.Hosts);

            consumer.Password    = rabbitBaseOptions.Password;
            consumer.Port        = rabbitBaseOptions.Port;
            consumer.UserName    = rabbitBaseOptions.UserName;
            consumer.VirtualHost = rabbitBaseOptions.VirtualHost;
            return(consumer);
        }
Esempio n. 2
0
        public static RabbitProducer Create(RabbitBaseOptions rabbitBaseOptions)
        {
            var producer = new RabbitProducer(rabbitBaseOptions.Hosts);

            producer.Password    = rabbitBaseOptions.Password;
            producer.Port        = rabbitBaseOptions.Port;
            producer.UserName    = rabbitBaseOptions.UserName;
            producer.VirtualHost = rabbitBaseOptions.VirtualHost;
            return(producer);
        }