-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need some event to handle recovery success #156
Comments
There is no such event. We have a nearly identical request for the Java client: rabbitmq/rabbitmq-java-client#132, so this is reasonable. |
Perhaps I'm misunderstanding the question, but isn't
|
@resnikb the idea here is to have a recovery success/completion event(s). |
@michaelklishin Right... Isn't that what |
I have a similar requirement, as we need to send a custom logon message for the RabbitMQ broker that we connect to. We would like a recovey or reconnect event, so that we can resend the logon if required. Would this ((IRecoverable)connection).Recovery += (sender, args) => {}; do the job? |
Any progress with this issue? It would be really like to have a couple of events around recovery:
Right now we are having issues with connection recovery and handling that correctly. Is there a way to detect connection recovery retry failure? In our case it's possible the username/pwd has changed and we would like to detect failure, get the new creds and then reconnect. |
See authentication failure notifications.
|
Thx @michaelklishin do you have a pointer to some docs i could read on that? I don't see anything in the dotnet guide. I see the exceptions/events in the dotnet library, just not obvious how i catch them. |
Actually, no, authentication failure notifications are exposed as There is no progress on this. Feel free to take a look into introducing the On Wed, Oct 12, 2016 at 12:28 AM, Chris Johnson [email protected]
MK Staff Software Engineer, Pivotal/RabbitMQ |
Thx @michaelklishin i'll look into it. At the very least it would be nice to be notified of what's going on for logging purposes and so on vs. participating in the recovery. e.g. auth failures right during recovery keep happening indefinitely right now. With an event you could tear down the whole connection and start again if desired. |
Dear team,
is there any way (may be some event) to recognize connection recovery for RabbitMQ?
I have a dashboard in my application, and I want to display to user the status of listening from Rabbit MQ. I've set up AutomaticRecoveryEnabled = true for ConnectionFactory. And I've set up NetworkRecoveryInterval to 10 seconds.
And I handle EventingBasicConsumer 's Shutdown event in order to provide information about disconnection. (I also have ConnectionShutdown event of IConnection).
But I can't find any ability to handle recovery success. Is there any event in case the connection was recovered? I want to notify my users that connection was recovered.
Thank you.
The text was updated successfully, but these errors were encountered: