NetEvolve.Pulse.AzureQueueStorage
0.84.106
Prefix Reserved
dotnet add package NetEvolve.Pulse.AzureQueueStorage --version 0.84.106
NuGet\Install-Package NetEvolve.Pulse.AzureQueueStorage -Version 0.84.106
<PackageReference Include="NetEvolve.Pulse.AzureQueueStorage" Version="0.84.106" />
<PackageVersion Include="NetEvolve.Pulse.AzureQueueStorage" Version="0.84.106" />
<PackageReference Include="NetEvolve.Pulse.AzureQueueStorage" />
paket add NetEvolve.Pulse.AzureQueueStorage --version 0.84.106
#r "nuget: NetEvolve.Pulse.AzureQueueStorage, 0.84.106"
#:package NetEvolve.Pulse.AzureQueueStorage@0.84.106
#addin nuget:?package=NetEvolve.Pulse.AzureQueueStorage&version=0.84.106
#tool nuget:?package=NetEvolve.Pulse.AzureQueueStorage&version=0.84.106
NetEvolve.Pulse.AzureQueueStorage
Azure Queue Storage transport for the Pulse outbox pattern. A cost-effective alternative to Azure Service Bus, available in every Azure Storage account with a 48 KB raw message size limit.
Features
- Connection Flexibility: Use a connection string or
DefaultAzureCredentialwith a service URI. - Automatic Queue Creation: Optionally creates the target queue on first use via
CreateQueueIfNotExists. - Base64 Encoding: Messages are JSON-serialized and Base64-encoded before sending, matching Azure Queue Storage requirements.
- Size Guard: Throws
InvalidOperationExceptionwhen a raw message exceeds 48 KB. - Sequential Batch Delivery:
SendBatchAsynciterates messages sequentially. - Dependency Injection: Single call
UseAzureQueueStorageTransportwires the transport.
Installation
.NET CLI
dotnet add package NetEvolve.Pulse.AzureQueueStorage
PackageReference
<PackageReference Include="NetEvolve.Pulse.AzureQueueStorage" Version="x.x.x" />
Quick Start
Connection String
using Microsoft.Extensions.DependencyInjection;
using NetEvolve.Pulse;
var services = new ServiceCollection();
services.AddPulse(config => config.UseAzureQueueStorageTransport(
connectionString: builder.Configuration["Storage:ConnectionString"]!
));
Managed Identity
services.AddPulse(config => config.UseAzureQueueStorageTransport(
queueServiceUri: new Uri("https://myaccount.queue.core.windows.net")
));
Configuration
| Option | Description |
|---|---|
ConnectionString |
Azure Storage connection string. Required when QueueServiceUri is not set. |
QueueServiceUri |
Azure Queue Storage service URI used with managed identity (DefaultAzureCredential). Required when ConnectionString is not set. |
QueueName |
Name of the queue to send messages to. Defaults to pulse-outbox. |
MessageVisibilityTimeout |
Optional initial delay before a sent message becomes visible to consumers. null means zero, so messages are visible immediately. It is not a processing lock. Must be between 00:00:00 and 7.00:00:00, and smaller than a finite MessageTimeToLive. Without MessageTimeToLive, the service default of 7 days applies, so it must be smaller than 7.00:00:00. |
MessageTimeToLive |
Optional time-to-live of each sent message. null keeps the service default of 7 days. Must be between one second and int.MaxValue seconds (about 68 years), or AzureQueueStorageTransportOptions.NeverExpires (-00:00:01) / Timeout.InfiniteTimeSpan for messages that never expire. |
CreateQueueIfNotExists |
Automatically creates the queue on first use. Defaults to true. |
Visibility Timeout and Time-to-Live
Both options map to the Put Message operation and are validated at startup.
MessageVisibilityTimeoutdelays the first delivery: the message stays invisible for this duration after it was sent. Consumers set their own visibility timeout when they receive a message.- Without
MessageTimeToLive, the service deletes a message 7 days after it was sent, even though the outbox already marked it as delivered. Set a longer value, orNeverExpires, when consumers can be offline for longer. - Azure Queue Storage uses whole seconds, so fractions of a second are truncated.
services.AddPulse(config => config.UseAzureQueueStorageTransport(
connectionString: builder.Configuration["Storage:ConnectionString"]!,
options => options.MessageTimeToLive = AzureQueueStorageTransportOptions.NeverExpires
));
Configuration via appsettings.json
Register AzureQueueStorageTransportOptionsConfiguration to bind from the Pulse:Transports:AzureQueueStorage section:
services.AddSingleton<IConfigureOptions<AzureQueueStorageTransportOptions>, AzureQueueStorageTransportOptionsConfiguration>();
{
"Pulse": {
"Transports": {
"AzureQueueStorage": {
"QueueName": "my-outbox",
"CreateQueueIfNotExists": true
}
}
}
}
Wire Format
Each outbox message is sent as a Base64-encoded UTF-8 JSON envelope:
{
"id": "0f8fad5b-d9cb-469f-a165-70867728950e",
"eventType": "MyApp.Events.OrderCreated, MyApp",
"payload": "{\"orderId\":42}",
"correlationId": "corr-123",
"causationId": null,
"createdAt": "2026-09-24T10:15:00+00:00"
}
| Property | Description |
|---|---|
id |
Outbox message identifier. |
eventType |
Outbox event type identifier of the event. |
payload |
The event as written to the outbox by IPayloadSerializer when it was stored, embedded as a JSON string and not serialized again. |
correlationId |
Optional correlation identifier, written as null when absent. |
causationId |
Optional causation identifier, written as null when absent. |
createdAt |
Creation timestamp of the outbox message. |
The envelope is serialized with the JsonSerializerOptions configured through services.Configure<JsonSerializerOptions>(...), the same options the default IPayloadSerializer uses, so converters and the encoder apply, for example to createdAt. The property names are fixed and the optional identifiers are always written, and DefaultIgnoreCondition, ReferenceHandler and WriteIndented are reset for the envelope, so neither these settings nor a naming policy change its shape or size. An internal source-generated context is appended to a copy of the options as fallback resolver, so the envelope needs no reflection in trimmed or NativeAOT applications.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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.21.0)
- Azure.Storage.Queues (>= 12.28.1)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.14)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Options (>= 10.0.14)
- NetEvolve.Pulse.Extensibility (>= 0.84.106)
-
net8.0
- Azure.Identity (>= 1.21.0)
- Azure.Storage.Queues (>= 12.28.1)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.14)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Options (>= 10.0.14)
- NetEvolve.Pulse.Extensibility (>= 0.84.106)
-
net9.0
- Azure.Identity (>= 1.21.0)
- Azure.Storage.Queues (>= 12.28.1)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.14)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.14)
- Microsoft.Extensions.Options (>= 10.0.14)
- NetEvolve.Pulse.Extensibility (>= 0.84.106)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.