Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Label not available in Azure.Messaging.ServiceBus.ServiceBus.ServiceBusMessage

I am migrating to Azure.Messaging.ServiceBus and have noticed that there is now no longer a property called Label

This is a huge problem as Label is used in our service bus rules to filter messages on a subscription.

What is the equivalant of setting message using the Azure.Messaging.ServiceBus and ServiceBusMessage

If I have to use Subject thats really bad because I would have to change every single rule in our service bus which is a total nightmare

Cheers

Paul

like image 966
Paul Avatar asked Oct 28 '25 02:10

Paul


1 Answers

What is the equivalant of setting message using the Azure.Messaging.ServiceBus and ServiceBusMessage

That'd be the Subject property.

If I have to use Subject thats really bad because I would have to change every single rule in our service bus which is a total nightmare

You don't need to change anything on the broker side. The SDK (Azure.Messaging.ServiceBus) is a client-side SDK. Subject will be converted to Label and you don't need to modify the existing subscriptions rules. See documentation here.

like image 176
Sean Feldman Avatar answered Oct 29 '25 18:10

Sean Feldman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!