azure-eventhub-dotnet
High-throughput event streaming
Developer Setup
Setup & Installation
npx skills add https://github.com/microsoft/skills --skill azure-eventhub-dotnetnpx skills add https://github.com/microsoft/skills --skill azure-eventhub-dotnetOverview
What This Skill Does
Azure.Messaging.EventHubs is the official .NET SDK for Azure Event Hubs. It handles high-throughput event streaming, including sending batches with EventHubProducerClient, buffered background sending with EventHubBufferedProducerClient, and production-grade receiving with EventProcessorClient and checkpoint-based offset tracking.
Application
When to use this Skill
- Configuring integration settings for custom agent workflows.
- Optimizing query execution and response latency in production.
- Developing clean, standard-compliant implementations for enterprise services.
- Troubleshooting connection timeouts and authentication handshakes.
- Monitoring API rate limits and execution pipelines programmatically.
Documentation
Show Skills.md file
Azure.Messaging.EventHubs (.NET)
High-throughput event streaming SDK for sending and receiving events via Azure Event Hubs.
Installation
# Core package (sending and simple receiving)
dotnet add package Azure.Messaging.EventHubs
# Processor package (production receiving with checkpointing)
dotnet add package Azure.Messaging.EventHubs.Processor
# Authentication
dotnet add package Azure.Identity
# For checkpointing (required by EventProcessorClient)
dotnet add package Azure.Storage.Blobs
Current Versions: Azure.Messaging.EventHubs v5.12.2, Azure.Messaging.EventHubs.Processor v5.12.2
Environment Variables
EVENTHUB_FULLY_QUALIFIED_NAMESPACE=<namespace>.servicebus.windows.net # Required: Event Hubs fully qualified namespace
EVENTHUB_NAME=<event-hub-name> # Required: Event Hub name
BLOB_STORAGE_CONNECTION_STRING=<storage-connection-string> # Alternative to Entra ID auth
BLOB_CONTAINER_NAME=<checkpoint-container> # Required: checkpoint container name
EVENTHUB_CONNECTION_STRING=Endpoint=sb://<namespace>.servicebus.windows.net/;SharedAccessKeyName=... # Alternative to Entra ID auth
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production
Recommendations
Explore other random skills
audit-context-building
Deep architectural context via ultra-granular code analysis
building-secure-contracts
Smart contract security toolkit with vulnerability scanners for 6 blockchains
constant-time-analysis
Detect compiler-induced timing side-channels in crypto code