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

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.120
                    
NuGet\Install-Package CommunityToolkit.Aspire.MassTransit.RabbitMQ -Version 9.1.0-beta.120
                    
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.120" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.MassTransit.RabbitMQ" Version="9.1.0-beta.120" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.MassTransit.RabbitMQ" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CommunityToolkit.Aspire.MassTransit.RabbitMQ --version 9.1.0-beta.120
                    
#r "nuget: CommunityToolkit.Aspire.MassTransit.RabbitMQ, 9.1.0-beta.120"
                    
#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.
#addin nuget:?package=CommunityToolkit.Aspire.MassTransit.RabbitMQ&version=9.1.0-beta.120&prerelease
                    
Install CommunityToolkit.Aspire.MassTransit.RabbitMQ as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.MassTransit.RabbitMQ&version=9.1.0-beta.120&prerelease
                    
Install CommunityToolkit.Aspire.MassTransit.RabbitMQ as a Cake Tool

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.3.1-beta.265 43 4/15/2025
9.3.1-beta.264 46 4/15/2025
9.3.1-beta.263 38 4/15/2025
9.3.1-beta.262 40 4/15/2025
9.3.1-beta.260 114 4/10/2025
9.3.1-beta.259 115 4/8/2025
9.3.1-beta.258 112 4/8/2025
9.3.1-beta.257 113 4/8/2025
9.3.1-beta.256 119 4/8/2025
9.3.1-beta.255 113 4/8/2025
9.3.1-beta.254 112 4/8/2025
9.3.1-beta.253 122 4/1/2025
9.3.1-beta.252 95 3/27/2025
9.3.1-beta.250 93 3/27/2025
9.3.1-beta.249 90 3/27/2025
9.3.1-beta.248 96 3/27/2025
9.3.1-beta.247 93 3/27/2025
9.3.1-beta.244 442 3/25/2025
9.3.1-beta.242 439 3/24/2025
9.3.1-beta.241 116 3/19/2025
9.3.0 342 3/19/2025
9.3.0-beta.239 108 3/19/2025
9.2.2-beta.237 112 3/19/2025
9.2.2-beta.236 84 3/14/2025
9.2.2-beta.230 125 3/13/2025
9.2.2-beta.229 110 3/13/2025
9.2.2-beta.228 125 3/11/2025
9.2.2-beta.227 122 3/11/2025
9.2.2-beta.226 121 3/11/2025
9.2.2-beta.225 115 3/11/2025
9.2.2-beta.224 122 3/11/2025
9.2.2-beta.223 122 3/10/2025
9.2.2-beta.222 124 3/10/2025
9.2.2-beta.220 126 3/9/2025
9.2.2-beta.218 121 3/9/2025
9.2.2-beta.217 163 3/7/2025
9.2.2-beta.216 163 3/7/2025
9.2.2-beta.215 152 3/7/2025
9.2.2-beta.214 166 3/5/2025
9.2.2-beta.213 158 3/5/2025
9.2.2-beta.212 155 3/5/2025
9.2.2-beta.211 162 3/4/2025
9.2.2-beta.210 166 3/4/2025
9.2.2-beta.208 55 3/3/2025
9.2.1 320 3/3/2025
9.2.1-beta.207 74 3/2/2025
9.2.1-beta.206 51 3/1/2025
9.2.1-beta.205 57 2/27/2025
9.2.1-beta.204 51 2/26/2025
9.2.1-beta.203 49 2/26/2025
9.2.0 204 2/26/2025
9.2.0-beta.202 56 2/26/2025
9.2.0-beta.201 52 2/26/2025
9.2.0-beta.199 54 2/26/2025
9.2.0-beta.198 49 2/26/2025
9.1.1-beta.197 53 2/25/2025
9.1.1-beta.196 55 2/25/2025
9.1.1-beta.195 48 2/25/2025
9.1.1-beta.194 57 2/25/2025
9.1.1-beta.193 57 2/25/2025
9.1.1-beta.192 53 2/24/2025
9.1.1-beta.191 58 2/24/2025
9.1.1-beta.190 53 2/19/2025
9.1.1-beta.189 53 2/19/2025
9.1.1-beta.188 60 2/19/2025
9.1.1-beta.187 62 2/19/2025
9.1.1-beta.183 66 2/18/2025
9.1.1-beta.182 68 2/18/2025
9.1.1-beta.181 71 2/18/2025
9.1.1-beta.180 60 2/17/2025
9.1.1-beta.178 64 2/17/2025
9.1.1-beta.177 58 2/12/2025
9.1.1-beta.176 69 2/11/2025
9.1.1-beta.175 60 2/11/2025
9.1.1-beta.173 65 2/10/2025
9.1.1-beta.169 56 2/6/2025
9.1.1-beta.168 54 2/5/2025
9.1.1-beta.166 50 2/5/2025
9.1.1-beta.165 50 2/5/2025
9.1.1-beta.164 58 2/3/2025
9.1.1-beta.162 55 2/3/2025
9.1.1-beta.155 55 1/30/2025
9.1.1-beta.154 54 1/30/2025
9.1.1-beta.153 52 1/30/2025
9.1.1-beta.152 46 1/29/2025
9.1.1-beta.150 59 1/29/2025
9.1.1-beta.148 53 1/26/2025
9.1.1-beta.147 50 1/26/2025
9.1.1-beta.146 51 1/23/2025
9.1.1-beta.145 52 1/22/2025
9.1.1-beta.144 46 1/22/2025
9.1.1-beta.142 47 1/22/2025
9.1.1-beta.140 52 1/22/2025
9.1.1-beta.139 50 1/21/2025
9.1.1-beta.138 51 1/20/2025
9.1.1-beta.137 43 1/17/2025
9.1.1-beta.136 38 1/15/2025
9.1.1-beta.135 21 1/15/2025
9.1.1-beta.134 19 1/15/2025
9.1.1-beta.128 35 1/9/2025
9.1.1-beta.127 39 1/9/2025
9.1.1-beta.126 43 1/9/2025
9.1.1-beta.125 43 1/9/2025
9.1.1-beta.124 51 1/9/2025
9.1.0 187 12/12/2024
9.1.0-beta.123 60 1/3/2025
9.1.0-beta.122 56 1/3/2025
9.1.0-beta.121 55 1/2/2025
9.1.0-beta.120 53 12/30/2024
9.1.0-beta.119 48 12/30/2024
9.1.0-beta.118 54 12/30/2024
9.1.0-beta.116 50 12/30/2024
9.1.0-beta.114 52 12/30/2024
9.1.0-beta.113 52 12/30/2024
9.1.0-beta.112 52 12/18/2024
9.1.0-beta.110 58 12/16/2024
9.1.0-beta.109 59 12/12/2024
9.0.1-beta.108 59 12/12/2024
9.0.1-beta.107 54 12/11/2024
9.0.1-beta.106 56 12/12/2024
9.0.1-beta.104 57 12/11/2024