Skip to main content
net8.0

RabbitMQ support for .NET Aspire.

Published
Jul 23, 2024
2y ago
Total Downloads
3.5M
3,516,609

Deprecated Package Version

Reason: Other, Legacy

This version is out of support and is no longer maintained. Please upgrade to the latest version. See our support policy for details: https://aka.ms/dotent/aspire/support

Install

dotnet add package Aspire.Hosting.RabbitMQ --version 8.1.0
ProductVersions
.NET
net8.0

README

Aspire.Hosting.RabbitMQ library

Provides extension methods and resource definitions for a .NET Aspire AppHost to configure a RabbitMQ resource.

Getting started

Install the package

In your AppHost project, install the .NET Aspire RabbitMQ Hosting library with NuGet:

dotnet add package Aspire.Hosting.RabbitMQ

Usage example

Then, in the Program.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);

Additional documentation

https://learn.microsoft.com/dotnet/aspire/messaging/rabbitmq-client-component

Feedback & contributing

https://github.com/dotnet/aspire

Changes from Previous Version

No structural changes between v8.0.2 and v8.1.0.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

NuGet marks this package as deprecated. Review the publisher's migration guidance before adopting it.Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.