为了与 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 的开发者体验都是相同的。
关于c# - .NET 中的 CloudQueueClient 和 QueueClient 类有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72913529/