Closed Gsantomaggio closed 5 months ago
I am fixing the bug by including link role in link name comparison.
Thank you
@xinchen10 thank you. Much appreciated by the entire RabbitMQ team!
I made the changes. Now it should allow the same name for two links with different roles.
It works. Thank you
@xinchen10 may I ask when the new version will be released? thank you
Version 2.4.10 is released.
The issue was already raised here https://github.com/Azure/amqpnetlite/issues/360
Description
I will try to propose an easy solution ( let's hope). Btw, given this code:
The library will replace the LinkName with the name
In this case, each value you set to the
Attach.LinkName
will be replaced. The library does not allow the use of the same name:raises:
mylink has been attached
To create the pair the linkname must be unique ref: https://docs.oasis-open.org/amqp/linkpair/v1.0/cs01/linkpair-v1.0-cs01.html#_Toc51331304
Possible solution(?)
I am not sure it can work but the easy solution would be like this:
Thank you