Service Bus Upgrade Scenario 5: Enable creation of new multi-property correlation filter
Dev estimate: 0 Test estimate: 5
Previous versions of the Service Bus supported two types of filters for subscriptions. The correlation filter scales to large numbers but is limited to a single property/value: the SQL filter is limited to 2000 instances per topic. In some scenarios, you may want to add filters for supporting large number of combinations of property name/values. This feature now enables you to set a filter with multiple equality clauses on properties. For example: PropertyNameOne=’ValueOne’ AND PropertyNameTwo=ValueTwo AND PropertyNameTest=’ValueThree’ C# CorrelationFilter filter = new CorrelationFilter(); filter.Properties.Add( new KeyValuePair<string, object>("name", 10));
basically, we need to update the schema of CorrelationFilter by adding a few properties.
In addition to CorrelationId, now it supports MessageId, To, ReplyTo, Label, SessionId, ReplyToSessionId, ContentType, and Properties. all are string type, except Properties is PropertyDictionary Type.
Here is the list of the properties a. CorrelationId b. MessageId c.To d.ReplyTo e. Label f. SessionId g. ReplyToSessionId h. ContentType
This is the trace for the properties
<Properties><KeyValueOfstringanyType><Key>keyIsGreat</Key><Value xmlns:d7p1="http://www.w3.org/2001/XMLSchema" i:type="d7p1:string">valueIsAlsoGreat</Value></KeyValueOfstringanyType></Properties>
basically, the Properties is implemented in KeyValueOfstringanyType
What is interesting is, from .NET SDK trace, it appears that Filter was put under DefaultRuleDescription.
https://github.com/gcheng/azure-sdk-for-java-pr/pull/121/files
look good
testing blocked because of issue # 359
#359 is in ready for test status, move this one into ready for test as well.
get list of properties above works now
after #359 fixed