CommunityToolkit.Aspire.MassTransit.RabbitMQ 9.1.0-beta.122

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.
dotnet add package CommunityToolkit.Aspire.MassTransit.RabbitMQ --version 9.1.0-beta.122                
NuGet\Install-Package CommunityToolkit.Aspire.MassTransit.RabbitMQ -Version 9.1.0-beta.122                
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.122" />                
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.122                
#r "nuget: CommunityToolkit.Aspire.MassTransit.RabbitMQ, 9.1.0-beta.122"                
#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.122&prerelease

// Install CommunityToolkit.Aspire.MassTransit.RabbitMQ as a Cake Tool
#tool nuget:?package=CommunityToolkit.Aspire.MassTransit.RabbitMQ&version=9.1.0-beta.122&prerelease                

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 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.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1-beta.155 31 1/30/2025
9.1.1-beta.154 28 1/30/2025
9.1.1-beta.153 26 1/30/2025
9.1.1-beta.152 5 1/29/2025
9.1.1-beta.150 31 1/29/2025
9.1.1-beta.148 30 1/26/2025
9.1.1-beta.147 29 1/26/2025
9.1.1-beta.146 29 1/23/2025
9.1.1-beta.145 33 1/22/2025
9.1.1-beta.144 29 1/22/2025
9.1.1-beta.142 29 1/22/2025
9.1.1-beta.140 32 1/22/2025
9.1.1-beta.139 32 1/21/2025
9.1.1-beta.138 33 1/20/2025
9.1.1-beta.137 34 1/17/2025
9.1.1-beta.136 29 1/15/2025
9.1.1-beta.135 10 1/15/2025
9.1.1-beta.134 10 1/15/2025
9.1.1-beta.128 10 1/9/2025
9.1.1-beta.127 9 1/9/2025
9.1.1-beta.126 15 1/9/2025
9.1.1-beta.125 14 1/9/2025
9.1.1-beta.124 11 1/9/2025
9.1.0 133 12/12/2024
9.1.0-beta.123 43 1/3/2025
9.1.0-beta.122 47 1/3/2025
9.1.0-beta.121 46 1/2/2025
9.1.0-beta.120 43 12/30/2024
9.1.0-beta.119 39 12/30/2024
9.1.0-beta.118 45 12/30/2024
9.1.0-beta.116 43 12/30/2024
9.1.0-beta.114 45 12/30/2024
9.1.0-beta.113 43 12/30/2024
9.1.0-beta.112 45 12/18/2024
9.1.0-beta.110 50 12/16/2024
9.1.0-beta.109 50 12/12/2024
9.0.1-beta.108 50 12/12/2024
9.0.1-beta.107 48 12/11/2024
9.0.1-beta.106 49 12/12/2024
9.0.1-beta.104 49 12/11/2024