How to get the raw number of messages from a subscription to the service bus Windows?

I am working on a system that should automatically scale the workflows that retrieve messages from the service bus section for processing.

To do this, I need to know the number of unprocessed messages for this subscription. How to do it?

I looked at the SubscriptionClient Class, but there seems to be no way to find the number of messages waiting to be processed.

enter image description here

+5
source share
1 answer

NamespaceManager, QueueDescription TopicDescription GetMessage(_name_) GetTopic(_name_). MessageCount.

, !

+2

All Articles