IAdvancedBus.IsConnected is no longer true right after the bus has been created
See original GitHub issueIAdvancedBus.IsConnected
is no longer true
right after the bus has been created. It’s flips to true after a call has been made with the bus.
var bus = RabbitHutch.CreateBus("host=localhost;username=myuser;password=mypass");
// bus.Advanced.IsConnected is false
await bus.PubSub.PublishAsync(new TestMsg());
// bus.Advanced.IsConnected is true
This has changed since 5.4.0
Is this intentionally or a bug?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:22 (9 by maintainers)
Top Results From Across the Web
What happens when publishing messages with EasyNetQ ...
CreateBus to create an instance of IBus/IAdvancedBus to publish messages to RabbitMQ. The instance is returned but the IsConnected flag is set ...
Read more >IAdvancedBus.cs
/// Task completes after publish has completed. If publisherConfirms=true is set in the connection string,; /// the task completes after an ACK is...
Read more >The Advanced API - EasyNetQ/EasyNetQ GitHub Wiki
This is due to the fact that the bus will attempt to connect once before its constructor returns, which will raise RabbitAdvancedBus.OnConnected ...
Read more >A Geek Christmas Quiz–The Answers! - Code rant
Yes yes, I know that's contentious, but I made up this quiz, so there! ... It was launched by stealth after the programme...
Read more >using EasyNetQ multiple Handler for one consumer does not ...
Ok, after testing this code, these are the problems: First of all, you're disposing your advancedBus right after you register for consumption.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the use case. Will look for a solution.
On version 5.6 we used the IAdvancedBus.IsConnected for one of our k8s health checks. Due to this change this obviously no longer works. Any suggestions on a workaround for this? (Or will the old behaviour of IsConnected will come back eventually - I can’t really tell form the conversation above)