c# - .NET 中的 CloudQueueClient 和 QueueClient 类有什么区别?

标签 c# .net azure azure-storage-queues

为了与 Azure 队列存储交互,.NET 提供了 CloudQueueClient 和 QueueClient 类。可以通过以下链接找到它们。

在引用上述文档时,我注意到 CloudQueueClient 来自旧版 Azure SDK for .NET,而 QueueClient 来自最新版本的 Azure SDK for .NET。

如果有人能够解释这两个类的确切区别和用例,那就太好了。

最佳答案

I noticed that CloudQueueClient comes from the Legacy version of Azure SDK for .NET & QueueClient comes from the latest version of Azure SDK for .NET.

嗯,就是这样!它们具有相同的目的,但名称不同。一些 SDK 已经出现了较新的版本,其中名称和其他内容已更改,以便更好地将 SDK 与 same (new) principles 保持一致。因此所有 SDK 的开发者体验都是相同的。

监听不同的V12及以上包here 。没有明确的迁移指南,但新样本是available

关于c# - .NET 中的 CloudQueueClient 和 QueueClient 类有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72913529/

相关文章:

c# - 为什么Enumerable中的方法可以没有方法体?

c# - 分析 C#/.NET 应用程序

c# - 将 Func<T, int> 值插入 linq-2-sql 查询

wcf - mvc3 中使用 WCF 服务获取数据的性能技术

Azure WebApp 找不到 ODBC 驱动程序

c# - 如何从对象中的字典访问值?

C# - 将随机数生成到字段中

c# - 使用 [ClassInitilize]Attribute 优于静态构造函数(或 : TestContext wat?!)

c# - 找到 VS 2010 Pro 中未使用的所有对象以便可以安全地删除它们?

azure - 同一 Azure 移动应用服务中的自定义身份验证和社交身份验证