I've subscribed to a topic and the sender sets two UserProperties 'Classification' and 'SubClassification'. I want to filter the messages with Classification set to 1. I tried adding the following SqlFilter.
SqlFilter("Classification='1'")
It doesn't work. I still receive all the messages irrespective of the 'Classification' property.
I'm using the Subscription client from Microsoft.Azure.ServiceBus namespace.
You don't need to use
SqlFilter()
inside the Rule. Just setting it asClassification='1'
will filter the messages.