configure a rabbit mq host using configuration api

时间:2017-12-18 05:07:17

标签: rabbitmq masstransit

I am using MassTransit 3.5 and RabbitMq

I want to make rabbitMq Host but it is giving me an error

this is my code

var hostName = new Uri("rabbitmq://localhost");
IBusControl busControl = Bus.Factory.CreateUsingRabbitMq(c =>
{
    IRabbitMqHost temp = c.Host(hostName, h =>
    {
        h.Username("admin");
        h.Password("admin");
    });
 });

this line gives me the error

IRabbitMqHost temp = c.Host(hostName, h =>

"Reference to type 'IPipeConfigurator<>' claims it is defined in 'MassTransit but it could not be found"

0 个答案:

没有答案