我应该为队列使用哪个 .NET Azure 服务总线库?
Which .NET Azure Service Bus library should I use for queues?
Microsoft 在 NuGet 上有两个 Azure 服务总线包:
- WindowsAzure.ServiceBus
Use this for Microsoft Azure Service Bus Queues, Topics, EventHub and Relay backend operations.
- Microsoft.Azure.ServiceBus
This is the next generation Azure Service Bus .NET Standard client library that focuses on queues & topics
起初听起来你应该选择 WindowsAzure.ServiceBus
。包描述字面意思是 "use this" 队列的命令。但是 Microsoft.Azure.ServiceBus
称自己为 "the next generation."
The GitHub project for Microsoft.Azure.ServiceBus
doesn't exactly help matters, either: The README links to code samples that use WindowsAzure.ServiceBus
(截至 2020 年 2 月)。
如博客中所述post The future of Azure Service Bus .NET SDK
服务总线现在有三个 SDK:
- WindowsAzure.ServiceBus
- Microsoft.Azure.ServiceBus
- Azure.Messaging.ServiceBus
Azure.Messaging.ServiceBus,这是最新的,最近发布并在 NuGet. There are some official samples available for it. Therefore I recommend using that SDK unless you find there is some critical functionality you need missing in it. To report bugs and request new functionality go to the Azure SDK GitHub home.
上可用
对于其他有同样问题(选择哪个SDK)的人,
这个 MSDN 概述有比较 + 所有 3 个 SDK 中的示例 + 一堆有用的链接。花了我 AGES 才找到,但真的很有用(连同 Enricos 博客文章中的背景故事)。
Microsoft 在 NuGet 上有两个 Azure 服务总线包:
- WindowsAzure.ServiceBus
Use this for Microsoft Azure Service Bus Queues, Topics, EventHub and Relay backend operations.
- Microsoft.Azure.ServiceBus
This is the next generation Azure Service Bus .NET Standard client library that focuses on queues & topics
起初听起来你应该选择 WindowsAzure.ServiceBus
。包描述字面意思是 "use this" 队列的命令。但是 Microsoft.Azure.ServiceBus
称自己为 "the next generation."
The GitHub project for Microsoft.Azure.ServiceBus
doesn't exactly help matters, either: The README links to code samples that use WindowsAzure.ServiceBus
(截至 2020 年 2 月)。
如博客中所述post The future of Azure Service Bus .NET SDK 服务总线现在有三个 SDK:
- WindowsAzure.ServiceBus
- Microsoft.Azure.ServiceBus
- Azure.Messaging.ServiceBus
Azure.Messaging.ServiceBus,这是最新的,最近发布并在 NuGet. There are some official samples available for it. Therefore I recommend using that SDK unless you find there is some critical functionality you need missing in it. To report bugs and request new functionality go to the Azure SDK GitHub home.
上可用对于其他有同样问题(选择哪个SDK)的人, 这个 MSDN 概述有比较 + 所有 3 个 SDK 中的示例 + 一堆有用的链接。花了我 AGES 才找到,但真的很有用(连同 Enricos 博客文章中的背景故事)。