Is there any way to intercept Azure service bus messages in a generic way on both sides (sending and receiving)? I would like to generically add properties to messages as they are sent, and read properties as they are received, without having to change the sending or receiving code.
I have found some references to WCF interfaces IClientMessageInspector
and IDispatchMessageInspector
in the context of service bus, but I have yet to find a real working sample that connects all the dots.
With the new .NET Standard client for Azure Service Bus , there are incoming and outgoing pipelines intended exactly for that purpose. You can have a look at some of the already available plugins to get an idea how it works.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.