Agent skill · software engineering · aiskillstore

azure-servicebus-dotnet

Azure Service Bus SDK for .NET. Enterprise messaging with queues, topics, subscriptions, and sessions.

Why this skill is useful

Provides specific commands and workflows for integrating Azure Service Bus with .NET applications that the AI wouldn't reliably generate on its own.

What it needs

Requires dotnet installed locally. Requires azure account access. About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Azure.Messaging.ServiceBus (.NET) Enterprise messaging SDK for reliable message delivery with queues, topics, subscriptions, and sessions. Installation Current Version: v7.20.1 (stable) Environment Variables Authentication Microsoft Entra ID (Recommended) Connection String ASP.NET Core Dependency Injection Client Hierarchy Core Workflows 1. Send Messages 2. Receive Messages 3. Message Settlement 4. Background Processing with Processor 5. Sessions (Ordered Processing) 6. Dead Letter Queue 7. Topics and Subscriptions 8. Administration (CRUD) 9. Cross-Entity Transactions Key Types Reference Type Purpose ------ --------- ServiceBusClient Main entry point, manages connection ServiceBusSender Sends messages to queues/topics ServiceBusReceiver Receives messages from queues/subscriptions ServiceBusSessionReceiver Receives session messages ServiceBusProcessor Background message processing ServiceBusSessionProcessor Background session processing ServiceBusAdministrationClient CRUD for queues/topics/subscriptions ServiceBusMessage Message to send ServiceBusReceivedMessage Received message with metadata ServiceBusMessageBatch Batch of messages Best Practices 1. Use singletons — Clients, senders, receivers, and processors are thread-safe 2. Always dispose — Use await using or call DisposeAsync() 3. Dispose order — Close senders/receivers/processors first, then client 4. Use DefaultAzureCredential — Prefer over connection strings for production 5. Use processors for background work — Handles lock renewal automatically 6. Use safe batching — CreateMessageBatchAsync() and TryAddMessage() 7. Handle transient errors — Use ServiceBusException.Reason 8. Configure transport — Use AmqpWebSockets if ports 5671/5672 are blocked 9. Set appropriate lock duration — Default is 30 seconds 10. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/azure-servicebus-dotnet

View the source on GitHub

Browse the @skills marketplace