Closed dekrevedko closed 3 years ago
Ok, weird!
I can see that the Rebus code differs from your code in that it provides a list of AMQP endpoints when it calls CreateConnection
on the connection factory.
The list of AMQP endpoints comes from this mapping, which seems to cause information about the scheme and the basic auth credentials to be lost.
Do you know the correct way to handle automatic failover?
I see only one way, manually set properties to the factory. Like:
_connectionFactory.Port = 443;
_connectionFactory.UserName = "user";
_connectionFactory.Password = "pswd";
_connectionFactory.VirtualHost = "vhost";
_connectionFactory.Ssl = new SslOption(){...}
Of cause, all these options will be the same for all servers on the list. Fortunately, it can be done by CustomizeConnectionFactory. And one observation: Uri property from CustomizeConnectionFactory does not replace (or added) to the host list.
Do I understand correctly that you made it work?
Hi, sorry for the delay. Yes, it works. The only issue is I can't use ClientConnectionName with CustomizeConnectionFactory. May be, connection name should be added to CustomizeConnectionFactory.
Hi, I have a weird issue with Rebus and RabbitMQ. I tried a simple example:
And face with exception:
But at the same time, Rabbit client example with the same connection string works well.
RabbitMQ.Client 5.1.1 and 5.2.0 were tried.