CommunityToolkit.Aspire.MassTransit.RabbitMQ
9.1.0-beta.112
Prefix Reserved
This is a prerelease version of CommunityToolkit.Aspire.MassTransit.RabbitMQ.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.MassTransit.RabbitMQ --version 9.1.0-beta.112
NuGet\Install-Package CommunityToolkit.Aspire.MassTransit.RabbitMQ -Version 9.1.0-beta.112
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommunityToolkit.Aspire.MassTransit.RabbitMQ" Version="9.1.0-beta.112" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CommunityToolkit.Aspire.MassTransit.RabbitMQ --version 9.1.0-beta.112
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CommunityToolkit.Aspire.MassTransit.RabbitMQ, 9.1.0-beta.112"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CommunityToolkit.Aspire.MassTransit.RabbitMQ as a Cake Addin #addin nuget:?package=CommunityToolkit.Aspire.MassTransit.RabbitMQ&version=9.1.0-beta.112&prerelease // Install CommunityToolkit.Aspire.MassTransit.RabbitMQ as a Cake Tool #tool nuget:?package=CommunityToolkit.Aspire.MassTransit.RabbitMQ&version=9.1.0-beta.112&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MassTransit RabbitMQ Aspire Client Extension
Overview
This package provides an Aspire client extension for seamlessly integrating MassTransit with RabbitMQ. It works with the Aspire.Hosting.RabbitMQ.AddRabbitMQ()
method for hosting.
The name string should match the name used in Aspire.Hosting.RabbitMQ.AddRabbitMQ()
, as it references the connection string.
Features
- Configures MassTransit RabbitMQ integration for clients.
- Automatically discovers and registers consumers, sagas, and activities.
- Supports OpenTelemetry and Application Insights for monitoring.
- Uses the same configuration format as the hosting environment for easy integration.
- Multi-bus support to configure multiple RabbitMQ instances.
Usage
Installation
To install, add the extension to your client application using builder.Services
in Startup.cs
or Program.cs
.
Example Usage
builder.AddMassTransitRabbitMq(
"rmq",
options => { options.DisableTelemetry = false; },
consumers =>
{
consumers.AddConsumer<SubmitOrderConsumer>();
consumers.AddConsumer<CancelOrderConsumer>();
consumers.AddConsumer<UpdateOrderConsumer>();
}
);
Multi-bus example
public interface ISecondBus : IBus;
builder.AddMassTransitRabbitMq("rabbitmq1", massTransitConfiguration: x =>
{
x.AddConsumer<TestConsumer>();
});
builder.AddMassTransitRabbitMq<ISecondBus>("rabbitmq2", massTransitConfiguration: x =>
{
x.AddConsumer<TestConsumerTwo>();
});
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Aspire.Hosting (>= 9.0.0)
- MassTransit.RabbitMQ (>= 8.3.2)
- OpenTelemetry.Extensions.Hosting (>= 1.10.0)
-
net9.0
- Aspire.Hosting (>= 9.0.0)
- MassTransit.RabbitMQ (>= 8.3.2)
- OpenTelemetry.Extensions.Hosting (>= 1.10.0)
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 |
---|---|---|
9.1.0 | 84 | 12/12/2024 |
9.1.0-beta.112 | 0 | 12/18/2024 |
9.1.0-beta.110 | 37 | 12/16/2024 |
9.1.0-beta.109 | 39 | 12/12/2024 |
9.0.1-beta.108 | 39 | 12/12/2024 |
9.0.1-beta.107 | 35 | 12/11/2024 |
9.0.1-beta.106 | 35 | 12/12/2024 |
9.0.1-beta.104 | 37 | 12/11/2024 |