Uniform.Messaging.AzureServiceBus 1.0.41-preview

This is a prerelease version of Uniform.Messaging.AzureServiceBus.
dotnet add package Uniform.Messaging.AzureServiceBus --version 1.0.41-preview
                    
NuGet\Install-Package Uniform.Messaging.AzureServiceBus -Version 1.0.41-preview
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Uniform.Messaging.AzureServiceBus" Version="1.0.41-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Uniform.Messaging.AzureServiceBus" Version="1.0.41-preview" />
                    
Directory.Packages.props
<PackageReference Include="Uniform.Messaging.AzureServiceBus" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Uniform.Messaging.AzureServiceBus --version 1.0.41-preview
                    
#r "nuget: Uniform.Messaging.AzureServiceBus, 1.0.41-preview"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Uniform.Messaging.AzureServiceBus@1.0.41-preview
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Uniform.Messaging.AzureServiceBus&version=1.0.41-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Uniform.Messaging.AzureServiceBus&version=1.0.41-preview&prerelease
                    
Install as a Cake Tool

Uniform.Messaging.AzureServiceBus

Azure Service Bus messaging provider for the Uniform microservice framework. Supports both Basic (queues only) and Standard/Premium (topics + subscriptions) pricing tiers.

Tiers

Standard / Premium (default)

Full pub/sub fanout. Each message type maps to a Topic; each service gets its own Subscription on every topic it consumes. Multiple services can receive the same message independently.

Uniform concept Azure Service Bus mapping
Message type (exchange) Topic named after the full CLR type name
Service queue Subscription on each relevant topic, named after the service
Dead letter Native ASB dead-letter subqueue
Retry with delay ScheduledEnqueueTime on a new topic message
Skip / Expire Named queues: {service}.skipped, {service}.expired
Request / Reply Named reply queue {service}.replies + CorrelationId matching

Topics and subscriptions are created automatically on startup. Topic names are sanitised from full CLR type names (e.g. + for nested types → -). Subscription names are limited to 50 characters; names over that threshold are truncated and suffixed with a 7-character hash to avoid collisions.

Basic

Queues only — no Topics or Subscriptions. Each message type maps to a Queue of the same name. Messages are delivered to exactly one consumer (competing consumers, no fanout). Use this tier when your namespace is on the Azure Service Bus Basic pricing plan, or when you only need point-to-point command routing and don't require multiple services to receive the same message.

Uniform concept Azure Service Bus mapping
Message type (exchange) Queue named after the full CLR type name
Service queue Same queue — all consumers compete for messages
Dead letter Native ASB dead-letter subqueue
Retry with delay ScheduledEnqueueTime on a new queue message
Skip / Expire Named queues: {service}.skipped, {service}.expired
Request / Reply Named reply queue {service}.replies + CorrelationId matching

Usage

// Standard/Premium tier (default — reads "AzureServiceBus:Tier" from config)
await Starter<MyUniform>.Create(args)
    .AddModule<AzureServiceBusModule>()
    .Start();

// Explicit tier override in code
await Starter<MyUniform>.Create(args)
    .AddModule(new AzureServiceBusModule(AzureServiceBusTier.Basic))
    .Start();

Configuration

Connection string (simple)

{
  "AzureServiceBus": {
    "ConnectionString": "Endpoint=sb://my-namespace.servicebus.windows.net/;SharedAccessKeyName=...;SharedAccessKey=..."
  }
}
{
  "AzureServiceBus": {
    "Namespace": "my-namespace.servicebus.windows.net"
  }
}

When Namespace is set instead of ConnectionString, the provider uses DefaultAzureCredential from Azure.Identity, which resolves credentials in this order: environment variables, workload identity, managed identity, Visual Studio, Azure CLI, etc.

Full options

{
  "AzureServiceBus": {
    "ConnectionString": "...",
    "Tier": "Standard",
    "MaxConcurrentConsumers": 10,
    "RequestTimeoutSeconds": 30
  }
}

Tier accepts Basic or Standard (case-insensitive) and defaults to Standard if omitted. A tier set via the AzureServiceBusModule(AzureServiceBusTier) constructor always takes precedence over the config value.

ConnectionString and Namespace are mutually exclusive; ConnectionString takes precedence if both are set. The required roles on the namespace are Azure Service Bus Data Owner (for topology management) or at minimum Data Sender + Data Receiver with pre-created topics/subscriptions (Standard) or queues (Basic).

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.41-preview 37 9/11/2026
1.0.40-preview 72 7/21/2026