Question with regard to AsyncEventingBasicConsumer
#1565
-
My code:
I received this error: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hello, thanks for using this library. I converted your issue to a discussion since there is no evidence of a bug in this library. When reporting issues with this library, or any software in general, it's best to provide enough information for someone to reproduce the problem. In your case, that involves runnable code. Since you didn't provide that, I created the following git repository with enough code to be runnable: https://github.com/lukebakken/rabbitmq-dotnet-client-1564/blob/main/Program.cs When I run the program, it consumes messages from an exclusive queue. I can use the Management UI to publish a message to that queue, and everything works as expected:
If I'm not using the correct code, please fork my repository and make the necessary changes to reproduce the issue. |
Beta Was this translation helpful? Give feedback.
-
The your code worked, but when uncomment the line Console.ReadLine();, the messages in the queue are not process, why? |
Beta Was this translation helpful? Give feedback.
I can't push to your repository, because you did not open a pull request (https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)
However, you can see my changes here:
https://github.com/lukebakken/rabbitmq-dotnet-client-1564/tree/gh-1/main
If you add my repository as another remote to your local clone, you can pull those changes into your code. Something like this: