I have problem to connect MassTransit with RabbitMq on CloudAMQP. Below is my code
var bus = Bus.Factory.CreateUsingRabbitMq(otions => {
var host = otions.Host(new Uri("rabbitmq://llama-01.rmq.cloudamqp.com"),
h => { h.Username("my_username"); h.Password("my_password"); });
otions.ReceiveEndpoint(host, "recvqueue", ep => {
ep.Handler<Communicate>(Handle);
});
});
bus.Start();
h.Password
and h.Username
are correct.
While I try to start the bus I get following error:
RabbitMQ Connect Failed: Broker unreachable: my_username@llama-01.rmq.cloudamqp.com:5672/
I suspect that the problem is in URI address but I can't find out the correct one.