Replies: 1 comment 2 replies
-
Hello @pgarbo, Yes, you need to use factory method that accepts address and queue name: var endpoint = Endpoint.Create("localhost", 5672, "guest", "guest");
var connectionFactory = new ConnectionFactory();
var connection = await connectionFactory.CreateAsync(endpoint);
var consumer = await connection.CreateConsumerAsync(address: "my-address", queue: "my-queue"); If the queue doesn't exist, I hope that helps, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is there a way to call CreateConsumerAsync without creating an address/queue if it does not exist? The problem we have is that server creates a very specific type of queue dynamically and we don't want clients to create it with default parameters before server does it.
Beta Was this translation helpful? Give feedback.
All reactions