Skip to content

How to check the connection to a queue? #651

Answered by kennethmyhra
aeldhuset asked this question in Q&A
Discussion options

You must be logged in to vote

@aeldhuset I haven't tested this approach myself, but can you try to create a connection using the RabbitMQ Client library and calling the method CreateModel() on the IConnection interface.

For reference: https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/2f6a10f89e3c6d97f232f4157a80e3a9e1470dc5/src/HealthChecks.Rabbitmq/RabbitMQHealthCheck.cs#L34

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
6 replies
@aeldhuset
Comment options

@thorhalvor
Comment options

@aeldhuset
Comment options

@thorhalvor
Comment options

@aeldhuset
Comment options

Comment options

You must be logged in to vote
3 replies
@aeldhuset
Comment options

@thorhalvor
Comment options

@aeldhuset
Comment options

Answer selected by aeldhuset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants