在新的NET标准Microsoft.Azure.ServiceBus中,NamespaceManager.GetQueue.MessageCount等效于什么? [英] What's the equivalent of NamespaceManager.GetQueue.MessageCount in the new NET Standard Microsoft.Azure.ServiceBus?

查看:77
本文介绍了在新的NET标准Microsoft.Azure.ServiceBus中,NamespaceManager.GetQueue.MessageCount等效于什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在新的NET标准Microsoft.Azure.ServiceBus中,NamespaceManager相当于什么?

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

我已经使用WindowsAzure.ServiceBus来进行诸如计数队列中的消息之类的操作...

I've used WindowsAzure.ServiceBus to do things like count messages in a queue ...

var namespaceManager = NamespaceManager.CreateFromConnectionString(SbConnectionString);
var count = namespaceManager.GetQueue(queueName).MessageCount;

移到新的Microsoft.Azure.ServiceBus .NET Standard库,但是虽然有类似的类QueueClient和TopicClient,它没有任何NamespaceManager

Moving over to the new Microsoft.Azure.ServiceBus .NET Standard library, but whilst it's got classes like QueueClient and TopicClient, it's not got any NamespaceManager

如何在新的.NET Standard库中进行消息计数?

How can you could do message counts in the new .NET Standard library?

推荐答案

要提供更新,请执行以下操作:

To provide an update:

这已在Microsoft 下实现并可用。 Azure.ServiceBus.Management; 命名空间。

This is now implemented and available under the Microsoft.Azure.ServiceBus.Management; namespace.

NamespaceManager 现在称为 ManagementClient 并具有(大约)相同的可用端点。

NamespaceManager is now called ManagementClient and has (roughly) the same endpoints available.

这里是类本身作为拉合并请求放入主存储库

这篇关于在新的NET标准Microsoft.Azure.ServiceBus中,NamespaceManager.GetQueue.MessageCount等效于什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆