Cirreum.Messaging.Azure
1.0.6
dotnet add package Cirreum.Messaging.Azure --version 1.0.6
NuGet\Install-Package Cirreum.Messaging.Azure -Version 1.0.6
<PackageReference Include="Cirreum.Messaging.Azure" Version="1.0.6" />
<PackageVersion Include="Cirreum.Messaging.Azure" Version="1.0.6" />
<PackageReference Include="Cirreum.Messaging.Azure" />
paket add Cirreum.Messaging.Azure --version 1.0.6
#r "nuget: Cirreum.Messaging.Azure, 1.0.6"
#:package Cirreum.Messaging.Azure@1.0.6
#addin nuget:?package=Cirreum.Messaging.Azure&version=1.0.6
#tool nuget:?package=Cirreum.Messaging.Azure&version=1.0.6
Cirreum.Messaging.Azure
Distributed messaging using Azure ServiceBus
Overview
Cirreum.Messaging.Azure provides a high-level abstraction over Azure Service Bus for distributed messaging scenarios. Built on the Cirreum Foundation Framework, it offers automatic service registration, intelligent caching, comprehensive health checks, and a clean API for queues, topics, and subscriptions.
Features
- Auto-Registration: Automatic discovery and registration of messaging clients from configuration
- Smart Caching: Intelligent sender/receiver caching with sliding expiration and automatic cleanup
- Health Monitoring: Comprehensive health checks for queues, topics, and subscriptions with configurable caching
- Clean Abstractions: Unified messaging API that abstracts Azure Service Bus complexity
- Production Ready: Built-in retry policies, connection management, and telemetry integration
Quick Start
Installation
dotnet add package Cirreum.Messaging.Azure
Basic Usage
// Add to your Program.cs or Startup.cs
builder.AddAzureMessagingClient("default", connectionString);
// Inject and use
public class MessageService(IMessagingClient client)
{
public async Task SendMessageAsync(string queueName, object message)
{
var queue = client.UseQueue(queueName);
var outbound = new OutboundMessage(message);
await queue.PublishMessageAsync(outbound);
}
public async Task<InboundMessage?> ReceiveMessageAsync(string queueName)
{
var queue = client.UseQueue(queueName);
return await queue.ReceiveMessageAsync();
}
}
Configuration-Based Registration
{
"Messaging": {
"Azure": {
"Instances": {
"primary": {
"ConnectionString": "Endpoint=sb://...",
"Name": "Primary Bus"
}
}
}
}
}
Topics and Subscriptions
// Publishing to topic
var topic = client.UseTopic("events");
await topic.BroadcastMessageAsync(message);
// Subscribing to topic
var subscription = client.UseSubscription("events", "processor");
var message = await subscription.ReceiveMessageAsync();
Contribution Guidelines
Be conservative with new abstractions
The API surface must remain stable and meaningful.Limit dependency expansion
Only add foundational, version-stable dependencies.Favor additive, non-breaking changes
Breaking changes ripple through the entire ecosystem.Include thorough unit tests
All primitives and patterns should be independently testable.Document architectural decisions
Context and reasoning should be clear for future maintainers.Follow .NET conventions
Use established patterns from Microsoft.Extensions.* libraries.
Versioning
Cirreum.Messaging.Azure follows Semantic Versioning:
- Major - Breaking API changes
- Minor - New features, backward compatible
- Patch - Bug fixes, backward compatible
Given its foundational role, major version bumps are rare and carefully considered.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Cirreum Foundation Framework
Layered simplicity for modern .NET
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Azure.Identity (>= 1.17.1)
- Azure.Messaging.ServiceBus (>= 7.20.1)
- Cirreum.Messaging (>= 1.0.105)
- Cirreum.ServiceProvider (>= 1.0.7)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cirreum.Messaging.Azure:
| Package | Downloads |
|---|---|
|
Cirreum.Runtime.Messaging
The Runtime Messaging service configuration. |
GitHub repositories
This package is not used by any popular GitHub repositories.