Skip to content

Producer message confirmation mechanism #1763

Closed Answered by lukebakken
sijunxin asked this question in Q&A
Discussion options

You must be logged in to vote

Version 7.0 has removed the API for producer message validation

No, it has changed. Please see the tutorial:

https://www.rabbitmq.com/tutorials/tutorial-seven-dotnet

By await-ing the task returned by BasicPublishAsync, 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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lukebakken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants