Aspire.Hosting.RabbitMQ
13.2.4
Prefix Reserved
dotnet add package Aspire.Hosting.RabbitMQ --version 13.2.4
NuGet\Install-Package Aspire.Hosting.RabbitMQ -Version 13.2.4
<PackageReference Include="Aspire.Hosting.RabbitMQ" Version="13.2.4" />
<PackageVersion Include="Aspire.Hosting.RabbitMQ" Version="13.2.4" />
<PackageReference Include="Aspire.Hosting.RabbitMQ" />
paket add Aspire.Hosting.RabbitMQ --version 13.2.4
#r "nuget: Aspire.Hosting.RabbitMQ, 13.2.4"
#:package Aspire.Hosting.RabbitMQ@13.2.4
#addin nuget:?package=Aspire.Hosting.RabbitMQ&version=13.2.4
#tool nuget:?package=Aspire.Hosting.RabbitMQ&version=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
| 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 was computed. 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 was computed. 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. |
-
net8.0
- Aspire.Hosting (>= 13.2.4)
- AspNetCore.HealthChecks.Rabbitmq (>= 9.0.0)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Google.Protobuf (>= 3.33.5)
- Grpc.AspNetCore (>= 2.76.0)
- Grpc.Net.ClientFactory (>= 2.76.0)
- Grpc.Tools (>= 2.78.0)
- Humanizer.Core (>= 2.14.1)
- JsonPatch.Net (>= 3.3.0)
- KubernetesClient (>= 18.0.13)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.5)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.25)
- Microsoft.Extensions.FileSystemGlobbing (>= 10.0.5)
- Microsoft.Extensions.Hosting (>= 10.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Http (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Options (>= 10.0.5)
- Microsoft.Extensions.Primitives (>= 10.0.5)
- ModelContextProtocol (>= 1.0.0)
- Newtonsoft.Json (>= 13.0.4)
- Polly.Core (>= 8.6.5)
- RabbitMQ.Client (>= 7.2.0)
- Semver (>= 3.0.0)
- StreamJsonRpc (>= 2.22.23)
- System.IO.Hashing (>= 10.0.3)
- System.Text.Json (>= 10.0.5)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Aspire.Hosting.RabbitMQ:
| Package | Downloads |
|---|---|
|
Verisoft.Core.Aspire.Hosting
Package Description |
|
|
Nall.Aspire.Hosting.DependsOn.RabbitMq
Aspire Healthchecks for RabbitMQ |
|
|
SoftwareExtravaganza.Whizbang.Hosting.RabbitMQ
Aspire hosting extensions for Whizbang RabbitMQ integration with automatic topology configuration. |
|
|
Codehard.Aspire.Hosting.Payment.RabbitMQ
Package Description |
|
|
Aspire4RabbitMQDelayedMessageExchange
Easily leverage RabbitMQ's Delayed Message Exchange Plugin in Aspire hosted applications |
GitHub repositories (19)
Showing the top 19 popular GitHub repositories that depend on Aspire.Hosting.RabbitMQ:
| Repository | Stars |
|---|---|
|
dotnet/eShop
A reference .NET application implementing an eCommerce site
|
|
|
ChilliCream/graphql-platform
Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Nitro the awesome Monaco based GraphQL IDE.
|
|
|
thomhurst/TUnit
A modern, fast and flexible .NET testing framework
|
|
|
evolutionary-architecture/evolutionary-architecture-by-example
Navigate the complex landscape of .NET software architecture with our step-by-step, story-like guide. Unpack the interplay between modular monoliths, microservices, domain-driven design, and various architectural patterns. Go beyond the one-size-fits-all solutions and understand how to blend these approaches based on your unique needs.
|
|
|
BrighterCommand/Brighter
A framework for building messaging apps with .NET and C#.
|
|
|
JasperFx/wolverine
Supercharged .NET server side development!
|
|
|
meysamhadeli/booking-microservices
A practical microservices with the latest technologies and architectures like Vertical Slice Architecture, Event Sourcing, CQRS, DDD, gRpc, MongoDB, RabbitMq, Masstransit, and Aspire in .Net 10.
|
|
|
colinin/abp-next-admin
这是基于vue-vben-admin 模板适用于abp vNext的前端管理项目
|
|
|
mehdihadeli/food-delivery-microservices
🍔 A practical and cloud-native food delivery microservices, built with .Net Aspire, .Net 9, MassTransit, Domain-Driven Design, CQRS, Vertical Slice Architecture, Event-Driven Architecture, and the latest technologies.
|
|
|
NexusForever/NexusForever
An emulator for the defunct MMORPG WildStar which supports build 16042 (Final Patch)
|
|
|
CommunityToolkit/Aspire
A community project with additional components and extensions for Aspire
|
|
|
meysamhadeli/booking-modular-monolith
A practical Modular Monolith architecture with the latest technologies and architecture like Vertical Slice Architecture, Event Driven Architecture, CQRS, DDD, gRpc, Masstransit, and Aspire in .Net 10.
|
|
|
mehmetozkaya/Design-Microservices-Architecture-with-Patterns-Principles
Design Microservices Architecture with Patterns & Principles. Design Microservices Architecture with Design Patterns, Principles and the Best Practices. How to handle millions of request with designing system for high availability, high scalability, low latency, and resilience to network failures on distributed microservices.
|
|
|
thangchung/practical-dotnet-aspire
The practical .NET Aspire builds on the coffeeshop app business domain
|
|
|
daohainam/microservice-patterns
Microservice pattern demos (Saga, EventSourcing, CQRS...) running on .NET Aspire
|
|
|
alex289/CleanArchitecture
Sample .NET 10 API project including Clean Architecture principles, Onion Architecture, MediatR, and Entity Framework with unit and integration tests using xUnit
|
|
|
dotnet/nuget-trends
Check out NuGet packages adoption and what's trending on NuGet.
|
|
|
zhuyongzhengs/Rex.ShopMicroService.Sample
一个基于ABP Framework 10.0、PostgreSQL、MongoDB、Redis、RabbitMQ、CAP、ElasticSearch、Minio、YARP的微服务电商商城平台,采用主流的互联网技术架构、全新的UI设计、可视化布局、支持集群部署;拥有活动促销、优惠卷、商品秒杀等众多完整的营销功能。
|
|
|
antosubash/abp-microservice
An abp microservice sample
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 13.2.4 | 2,864 | 4/24/2026 | |
| 13.2.3 | 6,928 | 4/21/2026 | |
| 13.2.2 | 36,632 | 4/8/2026 | |
| 13.2.1 | 25,868 | 3/31/2026 | |
| 13.2.0 | 31,277 | 3/23/2026 | |
| 13.1.3 | 15,187 | 3/19/2026 | |
| 13.1.2 | 76,031 | 2/26/2026 | |
| 13.1.1 | 60,261 | 2/11/2026 | |
| 13.1.0 | 220,392 | 12/17/2025 | |
| 13.0.2 | 52,872 | 12/4/2025 | |
| 13.0.1 | 27,332 | 11/26/2025 | |
| 13.0.0 | 40,263 | 11/11/2025 | |
| 9.5.2 | 99,743 | 10/23/2025 | |
| 9.5.1 | 63,778 | 10/3/2025 | |
| 9.5.0 | 27,192 | 9/25/2025 | |
| 9.4.2 | 68,853 | 9/2/2025 | |
| 9.4.1 | 44,673 | 8/12/2025 | |
| 9.4.0 | 48,771 | 7/29/2025 | |
| 9.3.1 | 99,708 | 6/10/2025 | |
| 9.3.0 | 66,877 | 5/19/2025 |