gpt4 book ai didi

azure - 确定 Azure 服务总线队列上有多少消息

转载 作者:行者123 更新时间:2023-12-03 10:54:08 27 4
gpt4 key购买 nike

我知道有一种方法可以确定Azure队列(商店帐户)中的消息数量(或近似数量);但是,有没有办法查询 Azure 服务总线队列上待处理消息的数量?

最佳答案

var nsmgr = Microsoft.ServiceBus.NamespaceManager.CreateFromConnectionString(connectionString);
long count = nsmgr.GetQueue(queueName).MessageCount;

关于azure - 确定 Azure 服务总线队列上有多少消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16254951/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com