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.
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: https://github.com/rabbitmq/rabbitmq-dotnet-client/tree/main/projects/Applications/PublisherConfirms |
Beta Was this translation helpful? Give feedback.
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