CommunityToolkit.Aspire.MassTransit.RabbitMQ 9.7.1

Prefix Reserved
dotnet add package CommunityToolkit.Aspire.MassTransit.RabbitMQ --version 9.7.1
                    
NuGet\Install-Package CommunityToolkit.Aspire.MassTransit.RabbitMQ -Version 9.7.1
                    
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.7.1" />
                    
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.7.1" />
                    
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.7.1
                    
#r "nuget: CommunityToolkit.Aspire.MassTransit.RabbitMQ, 9.7.1"
                    
#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.
#:package CommunityToolkit.Aspire.MassTransit.RabbitMQ@9.7.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CommunityToolkit.Aspire.MassTransit.RabbitMQ&version=9.7.1
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.MassTransit.RabbitMQ&version=9.7.1
                    
Install 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.  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. 
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.7.1 16 8/27/2025
9.7.1-beta.355 12 8/27/2025
9.7.1-beta.354 11 8/27/2025
9.7.1-beta.353 10 8/27/2025
9.7.1-beta.352 8 8/27/2025
9.7.1-beta.351 11 8/27/2025
9.7.1-beta.348 121 8/14/2025
9.7.1-beta.344 66 8/10/2025
9.7.1-beta.343 190 8/8/2025
9.7.1-beta.342 193 8/7/2025
9.7.1-beta.341 194 8/6/2025
9.7.1-beta.340 176 8/5/2025
9.7.1-beta.339 178 8/5/2025
9.7.0 734 8/1/2025
9.7.0-beta.337 75 8/1/2025
9.7.0-beta.336 87 8/1/2025
9.7.0-beta.335 83 8/1/2025
9.7.0-beta.333 92 7/30/2025
9.6.1-beta.332 90 7/30/2025
9.6.1-beta.331 94 7/30/2025
9.6.1-beta.330 90 7/30/2025
9.6.1-beta.329 89 7/30/2025
9.6.1-beta.328 90 7/29/2025
9.6.1-beta.327 93 7/28/2025
9.6.1-beta.326 92 7/28/2025
9.6.0 270 7/10/2025
9.6.0-beta.324 112 7/10/2025
9.5.1-beta.323 111 7/10/2025
9.5.1-beta.322 112 7/10/2025
9.5.1-beta.321 114 7/10/2025
9.5.1-beta.320 117 7/9/2025
9.5.1-beta.319 120 7/8/2025
9.5.1-beta.318 115 7/2/2025
9.5.1-beta.317 111 6/30/2025
9.5.1-beta.315 119 6/26/2025
9.5.1-beta.314 117 6/23/2025
9.5.1-beta.313 106 6/20/2025
9.5.1-beta.312 112 6/20/2025
9.5.1-beta.311 116 6/18/2025
9.5.1-beta.310 123 6/17/2025
9.5.1-beta.309 119 6/17/2025
9.5.1-beta.308 115 6/17/2025
9.5.1-beta.307 120 6/16/2025
9.5.1-beta.306 271 6/11/2025
9.5.1-beta.305 91 6/7/2025
9.5.1-beta.304 112 6/6/2025
9.5.1-beta.303 119 6/4/2025
9.5.1-beta.302 120 6/4/2025
9.5.1-beta.301 123 6/2/2025
9.5.1-beta.300 134 5/28/2025
9.5.0 925 5/27/2025
9.5.0-beta.299 128 5/27/2025
9.5.0-beta.298 131 5/26/2025
9.5.0-beta.297 77 5/24/2025
9.5.0-beta.296 71 5/24/2025
9.5.0-beta.295 47 5/24/2025
9.4.1-beta.291 156 5/19/2025
9.4.1-beta.289 135 5/16/2025
9.4.1-beta.288 185 5/16/2025
9.4.1-beta.287 189 5/16/2025
9.4.1-beta.286 186 5/16/2025
9.4.1-beta.285 201 5/14/2025
9.4.1-beta.284 206 5/13/2025
9.4.1-beta.283 219 5/12/2025
9.4.1-beta.282 128 5/7/2025
9.4.1-beta.280 120 5/2/2025
9.4.1-beta.279 122 5/2/2025
9.4.1-beta.277 149 4/23/2025
9.4.1-beta.276 142 4/23/2025
9.4.1-beta.275 137 4/23/2025
9.4.1-beta.274 137 4/23/2025
9.4.1-beta.273 140 4/23/2025
9.4.1-beta.272 137 4/23/2025
9.4.1-beta.271 134 4/23/2025
9.4.1-beta.270 143 4/20/2025
9.4.0 368 4/20/2025
9.4.0-beta.269 137 4/20/2025
9.4.0-beta.268 138 4/20/2025
9.3.1-beta.267 138 4/20/2025
9.3.1-beta.266 60 4/19/2025
9.3.1-beta.265 170 4/15/2025
9.3.1-beta.264 181 4/15/2025
9.3.1-beta.263 165 4/15/2025
9.3.1-beta.262 168 4/15/2025
9.3.1-beta.260 136 4/10/2025
9.3.1-beta.259 149 4/8/2025
9.3.1-beta.258 133 4/8/2025
9.3.1-beta.257 135 4/8/2025
9.3.1-beta.256 142 4/8/2025
9.3.1-beta.255 135 4/8/2025
9.3.1-beta.254 135 4/8/2025
9.3.1-beta.253 148 4/1/2025
9.3.1-beta.252 119 3/27/2025
9.3.1-beta.250 122 3/27/2025
9.3.1-beta.249 114 3/27/2025
9.3.1-beta.248 116 3/27/2025
9.3.1-beta.247 114 3/27/2025
9.3.1-beta.244 470 3/25/2025
9.3.1-beta.242 465 3/24/2025
9.3.1-beta.241 134 3/19/2025
9.3.0 590 3/19/2025
9.3.0-beta.239 131 3/19/2025
9.2.2-beta.237 130 3/19/2025
9.2.2-beta.236 107 3/14/2025
9.2.2-beta.230 145 3/13/2025
9.2.2-beta.229 133 3/13/2025
9.2.2-beta.228 143 3/11/2025
9.2.2-beta.227 145 3/11/2025
9.2.2-beta.226 148 3/11/2025
9.2.2-beta.225 146 3/11/2025
9.2.2-beta.224 142 3/11/2025
9.2.2-beta.223 141 3/10/2025
9.2.2-beta.222 144 3/10/2025
9.2.2-beta.220 147 3/9/2025
9.2.2-beta.218 140 3/9/2025
9.2.2-beta.217 185 3/7/2025
9.2.2-beta.216 198 3/7/2025
9.2.2-beta.215 171 3/7/2025
9.2.2-beta.214 189 3/5/2025
9.2.2-beta.213 177 3/5/2025
9.2.2-beta.212 175 3/5/2025
9.2.2-beta.211 196 3/4/2025
9.2.2-beta.210 187 3/4/2025
9.2.2-beta.208 76 3/3/2025
9.2.1 2,475 3/3/2025
9.2.1-beta.207 100 3/2/2025
9.2.1-beta.206 80 3/1/2025
9.2.1-beta.205 75 2/27/2025
9.2.1-beta.204 73 2/26/2025
9.2.1-beta.203 70 2/26/2025
9.2.0 240 2/26/2025
9.2.0-beta.202 77 2/26/2025
9.2.0-beta.201 73 2/26/2025
9.2.0-beta.199 75 2/26/2025
9.2.0-beta.198 72 2/26/2025
9.1.1-beta.197 73 2/25/2025
9.1.1-beta.196 77 2/25/2025
9.1.1-beta.195 68 2/25/2025
9.1.1-beta.194 80 2/25/2025
9.1.1-beta.193 78 2/25/2025
9.1.1-beta.192 76 2/24/2025
9.1.1-beta.191 82 2/24/2025
9.1.1-beta.190 76 2/19/2025
9.1.1-beta.189 72 2/19/2025
9.1.1-beta.188 78 2/19/2025
9.1.1-beta.187 82 2/19/2025
9.1.1-beta.183 87 2/18/2025
9.1.1-beta.182 85 2/18/2025
9.1.1-beta.181 91 2/18/2025
9.1.1-beta.180 84 2/17/2025
9.1.1-beta.178 84 2/17/2025
9.1.1-beta.177 76 2/12/2025
9.1.1-beta.176 90 2/11/2025
9.1.1-beta.175 80 2/11/2025
9.1.1-beta.173 89 2/10/2025
9.1.1-beta.169 73 2/6/2025
9.1.1-beta.168 75 2/5/2025
9.1.1-beta.166 71 2/5/2025
9.1.1-beta.165 70 2/5/2025
9.1.1-beta.164 80 2/3/2025
9.1.1-beta.162 75 2/3/2025
9.1.1-beta.155 74 1/30/2025
9.1.1-beta.154 75 1/30/2025
9.1.1-beta.153 73 1/30/2025
9.1.1-beta.152 69 1/29/2025
9.1.1-beta.150 88 1/29/2025
9.1.1-beta.148 78 1/26/2025
9.1.1-beta.147 74 1/26/2025
9.1.1-beta.146 73 1/23/2025
9.1.1-beta.145 74 1/22/2025
9.1.1-beta.144 64 1/22/2025
9.1.1-beta.142 70 1/22/2025
9.1.1-beta.140 84 1/22/2025
9.1.1-beta.139 78 1/21/2025
9.1.1-beta.138 72 1/20/2025
9.1.1-beta.137 72 1/17/2025
9.1.1-beta.136 58 1/15/2025
9.1.1-beta.135 53 1/15/2025
9.1.1-beta.134 41 1/15/2025
9.1.1-beta.128 57 1/9/2025
9.1.1-beta.127 65 1/9/2025
9.1.1-beta.126 65 1/9/2025
9.1.1-beta.125 69 1/9/2025
9.1.1-beta.124 71 1/9/2025
9.1.0 215 12/12/2024
9.1.0-beta.123 84 1/3/2025
9.1.0-beta.122 76 1/3/2025
9.1.0-beta.121 78 1/2/2025
9.1.0-beta.120 78 12/30/2024
9.1.0-beta.119 73 12/30/2024
9.1.0-beta.118 79 12/30/2024
9.1.0-beta.116 72 12/30/2024
9.1.0-beta.114 78 12/30/2024
9.1.0-beta.113 80 12/30/2024
9.1.0-beta.112 70 12/18/2024
9.1.0-beta.110 76 12/16/2024
9.1.0-beta.109 83 12/12/2024
9.0.1-beta.108 76 12/12/2024
9.0.1-beta.107 72 12/11/2024
9.0.1-beta.106 81 12/12/2024
9.0.1-beta.104 80 12/11/2024