Producer message confirmation mechanism #1763
-
Version 7.0 has removed the API for producer message validation, so how can message validation be implemented, only through transactions? |
Beta Was this translation helpful? Give feedback.
Answered by
lukebakken
Jan 9, 2025
Replies: 1 comment
-
No, it has changed. Please see the tutorial: https://www.rabbitmq.com/tutorials/tutorial-seven-dotnet By There is also example code here: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lukebakken
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, it has changed. Please see the tutorial:
https://www.rabbitmq.com/tutorials/tutorial-seven-dotnet
By
await
-ing the task returned byBasicPublishAsync
, if a confirmation fails, an exception will be raised, and you can handle it.There is also example code here:
https://github.com/rabbitmq/rabbitmq-dotnet-client/tree/main/projects/Applications/PublisherConfirms