Is there a way to get the current message count for an Azure topic subscription?
I see that the SubscriptionDescription class has a MessageCount property, but this
I found what I was looking for:
var namespaceManager = NamespaceManager.CreateFromConnectionString(connectionString); var subscriptionDesc = namespaceManager.GetSubscription(topicPath, subscriptionName); long messageCount = subscriptionDesc.MessageCount;