RawRabbit
RawRabbit copied to clipboard
Support multiple hosts with multiple ports
RawRabbit currently uses the Port property on ConnectionFactory to define what port to use. It connects to multiple hosts using CreateConnection with a list of strings. There is an overload for CreateConnection that takes AmqpTcpEndpoint endpoints that allows us to define a port per host.
We should leverage this. The implementation will have impact on how RawRabbitConfiguration, ConnectionStringParser and potentially more.
The method with AmpqTcpEndpoint is not part of IConnectionFactory. It will be part of the 5.0 release, see ticket: https://github.com/rabbitmq/rabbitmq-dotnet-client/issues/324