Aspire.Hosting.RabbitMQ 13.2.4
Aspire.Hosting.RabbitMQ library
Provides extension methods and resource definitions for an Aspire AppHost to configure a RabbitMQ resource.
Getting started
Install the package
In your AppHost project, install the Aspire RabbitMQ Hosting library with NuGet:
dotnet add package Aspire.Hosting.RabbitMQ
Usage example
Then, in the AppHost.cs file of AppHost, add a RabbitMQ resource and consume the connection using the following methods:
var rmq = builder.AddRabbitMQ("rmq");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(rmq);
Connection Properties
When you reference a RabbitMQ resource using WithReference, the following connection properties are made available to the consuming project:
RabbitMQ server
The RabbitMQ server resource exposes the following connection properties:
| Property Name | Description |
|---|---|
Host |
The hostname or IP address of the RabbitMQ server |
Port |
The port number the RabbitMQ server is listening on |
Username |
The username for authentication |
Password |
The password for authentication |
Uri |
The connection URI, with the format amqp://{Username}:{Password}@{Host}:{Port} |
Aspire exposes each property as an environment variable named [RESOURCE]_[PROPERTY]. For instance, the Uri property of a resource called db1 becomes DB1_URI.
Additional documentation
Feedback & contributing
No packages depend on Aspire.Hosting.RabbitMQ.
.NET 8.0
- Aspire.Hosting (>= 13.2.4)
- System.Text.Json (>= 10.0.5)
- System.IO.Hashing (>= 10.0.3)
- StreamJsonRpc (>= 2.22.23)
- Semver (>= 3.0.0)
- RabbitMQ.Client (>= 7.2.0)
- Polly.Core (>= 8.6.5)
- Newtonsoft.Json (>= 13.0.4)
- ModelContextProtocol (>= 1.0.0)
- Microsoft.Extensions.Primitives (>= 10.0.5)
- Microsoft.Extensions.Options (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Http (>= 10.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Hosting (>= 10.0.5)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.25)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.5)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.5)
- KubernetesClient (>= 18.0.13)
- JsonPatch.Net (>= 3.3.0)
- Humanizer.Core (>= 2.14.1)
- Grpc.Tools (>= 2.78.0)
- Grpc.Net.ClientFactory (>= 2.76.0)
- Grpc.AspNetCore (>= 2.76.0)
- Google.Protobuf (>= 3.33.5)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- AspNetCore.HealthChecks.Rabbitmq (>= 9.0.0)
- Microsoft.Extensions.FileSystemGlobbing (>= 10.0.5)
| Version | Downloads | Last updated |
|---|---|---|
| 13.4.6 | 1 | 21.06.2026 |
| 13.4.5 | 2 | 19.06.2026 |
| 13.4.4 | 1 | 21.06.2026 |
| 13.4.3 | 1 | 14.06.2026 |
| 13.4.2 | 1 | 04.06.2026 |
| 13.4.1 | 1 | 04.06.2026 |
| 13.4.0 | 1 | 04.06.2026 |
| 13.3.5 | 1 | 26.05.2026 |
| 13.3.4 | 1 | 26.05.2026 |
| 13.3.3 | 1 | 17.05.2026 |
| 13.3.2 | 2 | 17.05.2026 |
| 13.3.1 | 2 | 17.05.2026 |
| 13.3.0 | 3 | 12.05.2026 |
| 13.2.4 | 2 | 28.04.2026 |
| 13.2.3 | 3 | 28.04.2026 |
| 13.2.2 | 2 | 11.04.2026 |
| 13.2.1 | 2 | 31.03.2026 |
| 13.2.0 | 2 | 31.03.2026 |
| 13.1.3 | 3 | 23.03.2026 |
| 13.1.2 | 4 | 01.03.2026 |
| 13.1.1 | 4 | 21.02.2026 |
| 13.1.0 | 3 | 11.02.2026 |
| 13.0.2 | 5 | 12.12.2025 |
| 13.0.1 | 5 | 12.12.2025 |
| 13.0.0 | 6 | 12.12.2025 |
| 9.5.2 | 5 | 13.12.2025 |
| 9.5.1 | 6 | 10.11.2025 |
| 9.5.0 | 6 | 27.09.2025 |
| 9.4.2 | 8 | 05.09.2025 |
| 9.4.1 | 8 | 05.09.2025 |
| 9.4.0 | 8 | 05.09.2025 |
| 9.3.1 | 8 | 05.09.2025 |
| 9.3.0 | 8 | 05.09.2025 |
| 9.2.1 | 8 | 05.09.2025 |
| 9.2.0 | 9 | 05.09.2025 |
| 9.1.0 | 9 | 04.09.2025 |
| 9.0.0 | 8 | 05.09.2025 |
| 9.0.0-rc.1.24511.1 | 5 | 05.09.2025 |
| 8.2.2 | 7 | 05.09.2025 |
| 8.2.1 | 8 | 05.09.2025 |
| 8.2.0 | 8 | 05.09.2025 |
| 8.1.0 | 8 | 05.09.2025 |
| 8.0.2 | 8 | 05.09.2025 |
| 8.0.1 | 9 | 05.09.2025 |
| 8.0.0 | 8 | 05.09.2025 |
| 8.0.0-preview.7.24251.11 | 5 | 05.09.2025 |
| 8.0.0-preview.6.24214.1 | 5 | 05.09.2025 |
| 8.0.0-preview.5.24201.12 | 6 | 05.09.2025 |