pardahlman / RawRabbit

A modern .NET framework for communication over RabbitMq
MIT License
747 stars 144 forks source link

CreateSingleton Doesn't Seem to Respect Hostnames for Configuration #200

Closed jbarket closed 7 years ago

jbarket commented 7 years ago

Ran into a bit of an issue tonight with 2.0.0-beta5. I've been testing everything locally, so I've only been configuring plugins. Now I need to pass something different to Hostnames, but it doesn't seem to be respecting it.

I've tried using vNext and adding a configuration json file like the sample console application, and I've tried just adding it directly to ClientConfiguration like so:

                    new RawRabbitOptions
                        {
                            ClientConfiguration = new RawRabbitConfiguration { Hostnames = { "198.127.2.1" }, Ssl = new SslOption() },
                            Plugins =
                                p =>
                                    p.UseAttributeRouting().UseGlobalExecutionId().UseApplicationQueueSuffix().UseContextForwarding()
                        });
        }

I've also tried it with the full ClientConfiguration object as it is in the 2.0 docs just looking for an error on login, host or anything. No matter what I change, I get a connection error for 127.0.0.1:5672

jbarket commented 7 years ago

I apparently only post issues in RawRabbit for things where I've had a stroke. The configuration exists on both sides, I only updated it on one. Ignore me, thanks again for the great library, haha.