azure-servicebus-dotnet

仓库创建 2026年1月17日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

适合构建分布式异步消息与后台任务的工程化场景。

▸ 风险提示

需配置 Service Bus 连接字符串并开放网络访问。

这个 Skill 做什么

在 .NET 中使用 Azure Service Bus 实现可靠的消息队列与订阅模型。

在 .NET 项目里实现企业级消息传递、队列与发布/订阅时用它,支持队列、topic/订阅、会话和死信队列,适合后台任务和可靠投递场景。需要高可用消息、事件驱动或解耦微服务通信时就会用到。特点是基于 Azure.Messaging.ServiceBus SDK,能和 Azure 身份集成,处理重试、会话和死信等复杂场景。

▸ 展开 SKILL.md 英文原文

Azure Service Bus SDK for .NET. Enterprise messaging with queues, topics, subscriptions, and sessions. Use for reliable message delivery, pub/sub patterns, dead letter handling, and background processing. Triggers: "Service Bus", "ServiceBusClient", "ServiceBusSender", "ServiceBusReceiver", "ServiceBusProcessor", "message queue", "pub/sub .NET", "dead letter queue".

开发编程Azure服务总线消息队列.NET通用
2.7k
Stars
304
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/microsoft/skills/main/.github/plugins/azure-sdk-dotnet/skills/azure-servicebus-dotnet/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/microsoft/skills/main/.github/plugins/azure-sdk-dotnet/skills/azure-servicebus-dotnet/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Azure.Messaging.ServiceBus (.NET)

Enterprise messaging SDK for reliable message delivery with queues, topics, subscriptions, and sessions.

## Installation

```bash
dotnet add package Azure.Messaging.ServiceBus
dotnet add package Azure.Identity
```

**Current Version**: v7.20.1 (stable)

## Environment Variables

```bash
AZURE_SERVICEBUS_FULLY_QUALIFIED_NAMESPACE=<namespace>.servicebus.windows.net  # Required: Service Bus fully qualified namespace
AZURE_TOKEN_CREDENTIALS=prod  # Required only if DefaultAzureCredential is used in production
AZURE_SERVICEBUS_CONNECTION_STRING=Endpoint=sb://...  # Alternative to Entra ID auth
```

## Authentication

### Microsoft Entra Token Credential

```c
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有