Flowly.AzureServiceBus.Aspire
1.5.1
See the version list below for details.
dotnet add package Flowly.AzureServiceBus.Aspire --version 1.5.1
NuGet\Install-Package Flowly.AzureServiceBus.Aspire -Version 1.5.1
<PackageReference Include="Flowly.AzureServiceBus.Aspire" Version="1.5.1" />
<PackageVersion Include="Flowly.AzureServiceBus.Aspire" Version="1.5.1" />
<PackageReference Include="Flowly.AzureServiceBus.Aspire" />
paket add Flowly.AzureServiceBus.Aspire --version 1.5.1
#r "nuget: Flowly.AzureServiceBus.Aspire, 1.5.1"
#:package Flowly.AzureServiceBus.Aspire@1.5.1
#addin nuget:?package=Flowly.AzureServiceBus.Aspire&version=1.5.1
#tool nuget:?package=Flowly.AzureServiceBus.Aspire&version=1.5.1
Flowly.AzureServiceBus.Aspire
.NET Aspire AppHost integration for Flowly with Azure Service Bus. Automatically discovers queues and events from your service's FlowlyConfiguration and registers them with the Azure Service Bus emulator.
Setup
Reference the package with IsAspireProjectResource="false" in the AppHost .csproj:
<PackageReference Include="Flowly.AzureServiceBus.Aspire" IsAspireProjectResource="false" />
Quick Start
// AppHost Program.cs
var azureServiceBus = builder
.AddAzureServiceBus("EmulatorNamespace")
.RunAsEmulator();
var backendProcessor = builder.AddProject<Projects.BackendProcessor>("BackendProcessor");
// Auto-discovers queues from the project's FlowlyConfiguration
azureServiceBus.AddFlowly(backendProcessor);
backendProcessor
.WithReference(azureServiceBus)
.WaitFor(azureServiceBus);
Message Time to Live
Queues and topics get the time to live configured in Flowly ([DefaultMessageTimeToLive], 1 day by default; Flowly's internal job state queues ask for 14 days). When the Service Bus resource runs as the emulator (RunAsEmulator), a longer time to live is capped at 1 hour, the emulator's maximum; this happens when the AppHost starts, so RunAsEmulator may be called before or after AddFlowly. A real Azure Service Bus namespace keeps the configured value.
RPC Call Handlers (AddCallSubmitter)
When a service registers an RPC call submitter with AddCallSubmitter<TMessage>(), it owns a reply queue per call queue, named {callQueue}-reply-{InstanceName} with the default kebab-case resolver (e.g. call-reply-sender for CallMessage and the instance name sender). The emulator must have these queues pre-created, so call AddFlowly for the sender project too — and pass the instanceName that matches FlowlyOptions.InstanceName set in the sender's Program.cs:
// Sender's Program.cs (runtime)
builder.AddFlowly<FlowlyConfiguration>(options =>
{
options.CreateTopology = false;
options.InstanceName = "sender"; // determines the reply queue names
});
// AppHost Program.cs
azureServiceBus.AddFlowly(receiver); // registers the main queue
azureServiceBus.AddFlowly(sender, instanceName: "sender"); // registers the reply queues
Without instanceName, AddFlowly cannot form the correct reply queue names at design time and the call will fail at runtime because the queues do not exist in the emulator.
Explicit Topology
For services that use inline AddFlowly() (no FlowlyConfiguration subclass), declare topology explicitly:
azureServiceBus.AddFlowly(backendProcessor, topology =>
topology
.AddQueue("order-created")
.AddEventSubscription<OrderProcessedEvent>("finance-order-processed-event-handler"));
Documentation
| 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
- Aspire.Hosting.Azure.ServiceBus (>= 13.6.5)
- Flowly (>= 1.5.1)
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.6.0 | 49 | 12/1/2026 |
| 1.5.1 | 45 | 12/1/2026 |
| 1.5.0 | 105 | 11/20/2026 |
| 1.4.4 | 164 | 8/27/2026 |
| 1.4.3 | 136 | 8/13/2026 |
| 1.4.2 | 122 | 8/13/2026 |
| 1.4.1 | 138 | 8/11/2026 |
| 1.4.0 | 145 | 8/11/2026 |
| 1.3.2 | 154 | 7/3/2026 |
| 1.3.1 | 147 | 6/26/2026 |
| 1.3.0 | 148 | 6/24/2026 |
| 1.2.0 | 173 | 5/27/2026 |
| 1.1.1 | 144 | 5/22/2026 |
| 1.1.0 | 152 | 5/18/2026 |
| 1.0.1 | 136 | 5/6/2026 |
| 1.0.0 | 136 | 5/6/2026 |