What\'s the equivalent of NamespaceManager in the new NET Standard Microsoft.Azure.ServiceBus?
I\'ve used WindowsAzure.ServiceBus to do things like count messages in
You CAN read the queue message count:
var managementClient = new ManagementClient(connectionString);
(await managementClient.GetQueueRuntimeInfoAsync("name")).MessageCount;
To provide an update:
This is now implemented and available under the Microsoft.Azure.ServiceBus.Management;
namespace.
NamespaceManager
is now called ManagementClient
and has (roughly) the same endpoints available.
Here's the class itself as part of the pull request to merge it into the main repository.
You can't.
The new API doesn't support reading message counts. You'd have to use Azure Monitor API to get them.
Read why that's that case and how to work with Azure Monitor in Reading Azure Service Bus Metrics.