What's the equivalent of NamespaceManager.GetQueue.MessageCount in the new NET Standard Microsoft.Azure.ServiceBus?

前端 未结 3 1471
盖世英雄少女心
盖世英雄少女心 2021-01-18 10:30

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

3条回答
  •  没有蜡笔的小新
    2021-01-18 11:31

    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.

提交回复
热议问题