How to check if queue exists? #1130
-
Is there any way to check if queue exists? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Your application should just create the queue using identical creation parameters. If it already exists, nothing will happen. If you need to check if a queue exists, use a passive declaration. See the |
Beta Was this translation helpful? Give feedback.
Your application should just create the queue using identical creation parameters. If it already exists, nothing will happen.
If you need to check if a queue exists, use a passive declaration. See the
passive
parameter:https://github.com/rabbitmq/rabbitmq-dotnet-client/blob/main/projects/RabbitMQ.Client/client/framing/QueueDeclare.cs#L52