I have 1 Topic with 1 Subscription.
I'm creating messages like this:
BrokeredMessage messageTaskA = new BrokeredMessage("New Task");
messageTaskA.Properties["Type"] = "A";
BrokeredMessage messageTaskB = new BrokeredMessage("New Task");
messageTaskB.Properties["Type"] = "B";
I would like to have the total messages, total messages of type A, total message of type B counters:
1) Total of messages in the Subscription: SubscriptionDescription desc = namespaceManager.GetSubscription("topicName", "subscriptionName"); totalTask = desc.MessageCount;
2) Total of messages in the Subscription of Type A: ????
3) Total of messages in the Subscription of Type B: ????
It's possible to do this without using the Receive and Abandon functions ? Maybe using filters ?
Thanks in advance Rui