CommunityToolkit.Aspire.MassTransit.RabbitMQ 9.6.0

Prefix Reserved
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.6.0
                    
NuGet\Install-Package CommunityToolkit.Aspire.MassTransit.RabbitMQ -Version 9.6.0
                    
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.6.0" />
                    
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.6.0" />
                    
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.6.0
                    
#r "nuget: CommunityToolkit.Aspire.MassTransit.RabbitMQ, 9.6.0"
                    
#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.6.0
                    
#: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.6.0
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.MassTransit.RabbitMQ&version=9.6.0
                    
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-beta.344 12 8/10/2025
9.7.1-beta.343 161 8/8/2025
9.7.1-beta.342 163 8/7/2025
9.7.1-beta.341 164 8/6/2025
9.7.1-beta.340 165 8/5/2025
9.7.1-beta.339 165 8/5/2025
9.7.0 244 8/1/2025
9.7.0-beta.337 69 8/1/2025
9.7.0-beta.336 81 8/1/2025
9.7.0-beta.335 77 8/1/2025
9.7.0-beta.333 86 7/30/2025
9.6.1-beta.332 84 7/30/2025
9.6.1-beta.331 86 7/30/2025
9.6.1-beta.330 84 7/30/2025
9.6.1-beta.329 83 7/30/2025
9.6.1-beta.328 86 7/29/2025
9.6.1-beta.327 88 7/28/2025
9.6.1-beta.326 88 7/28/2025
9.6.0 193 7/10/2025
9.6.0-beta.324 108 7/10/2025
9.5.1-beta.323 107 7/10/2025
9.5.1-beta.322 108 7/10/2025
9.5.1-beta.321 110 7/10/2025
9.5.1-beta.320 113 7/9/2025
9.5.1-beta.319 116 7/8/2025
9.5.1-beta.318 111 7/2/2025
9.5.1-beta.317 107 6/30/2025
9.5.1-beta.315 114 6/26/2025
9.5.1-beta.314 113 6/23/2025
9.5.1-beta.313 102 6/20/2025
9.5.1-beta.312 108 6/20/2025
9.5.1-beta.311 112 6/18/2025
9.5.1-beta.310 119 6/17/2025
9.5.1-beta.309 115 6/17/2025
9.5.1-beta.308 111 6/17/2025
9.5.1-beta.307 116 6/16/2025
9.5.1-beta.306 265 6/11/2025
9.5.1-beta.305 87 6/7/2025
9.5.1-beta.304 108 6/6/2025
9.5.1-beta.303 115 6/4/2025
9.5.1-beta.302 116 6/4/2025
9.5.1-beta.301 119 6/2/2025
9.5.1-beta.300 129 5/28/2025
9.5.0 573 5/27/2025
9.5.0-beta.299 123 5/27/2025
9.5.0-beta.298 127 5/26/2025
9.5.0-beta.297 73 5/24/2025
9.5.0-beta.296 67 5/24/2025
9.5.0-beta.295 43 5/24/2025
9.4.1-beta.291 152 5/19/2025
9.4.1-beta.289 131 5/16/2025
9.4.1-beta.288 180 5/16/2025
9.4.1-beta.287 184 5/16/2025
9.4.1-beta.286 181 5/16/2025
9.4.1-beta.285 196 5/14/2025
9.4.1-beta.284 201 5/13/2025
9.4.1-beta.283 214 5/12/2025
9.4.1-beta.282 123 5/7/2025
9.4.1-beta.280 115 5/2/2025
9.4.1-beta.279 117 5/2/2025
9.4.1-beta.277 145 4/23/2025
9.4.1-beta.276 137 4/23/2025
9.4.1-beta.275 133 4/23/2025
9.4.1-beta.274 133 4/23/2025
9.4.1-beta.273 136 4/23/2025
9.4.1-beta.272 132 4/23/2025
9.4.1-beta.271 128 4/23/2025
9.4.1-beta.270 139 4/20/2025
9.4.0 362 4/20/2025
9.4.0-beta.269 133 4/20/2025
9.4.0-beta.268 133 4/20/2025
9.3.1-beta.267 134 4/20/2025
9.3.1-beta.266 56 4/19/2025
9.3.1-beta.265 166 4/15/2025
9.3.1-beta.264 176 4/15/2025
9.3.1-beta.263 161 4/15/2025
9.3.1-beta.262 164 4/15/2025
9.3.1-beta.260 132 4/10/2025
9.3.1-beta.259 145 4/8/2025
9.3.1-beta.258 128 4/8/2025
9.3.1-beta.257 130 4/8/2025
9.3.1-beta.256 137 4/8/2025
9.3.1-beta.255 130 4/8/2025
9.3.1-beta.254 131 4/8/2025
9.3.1-beta.253 144 4/1/2025
9.3.1-beta.252 114 3/27/2025
9.3.1-beta.250 118 3/27/2025
9.3.1-beta.249 110 3/27/2025
9.3.1-beta.248 112 3/27/2025
9.3.1-beta.247 110 3/27/2025
9.3.1-beta.244 466 3/25/2025
9.3.1-beta.242 460 3/24/2025
9.3.1-beta.241 130 3/19/2025
9.3.0 583 3/19/2025
9.3.0-beta.239 127 3/19/2025
9.2.2-beta.237 126 3/19/2025
9.2.2-beta.236 103 3/14/2025
9.2.2-beta.230 141 3/13/2025
9.2.2-beta.229 129 3/13/2025
9.2.2-beta.228 139 3/11/2025
9.2.2-beta.227 141 3/11/2025
9.2.2-beta.226 144 3/11/2025
9.2.2-beta.225 141 3/11/2025
9.2.2-beta.224 138 3/11/2025
9.2.2-beta.223 137 3/10/2025
9.2.2-beta.222 140 3/10/2025
9.2.2-beta.220 143 3/9/2025
9.2.2-beta.218 136 3/9/2025
9.2.2-beta.217 181 3/7/2025
9.2.2-beta.216 194 3/7/2025
9.2.2-beta.215 166 3/7/2025
9.2.2-beta.214 185 3/5/2025
9.2.2-beta.213 173 3/5/2025
9.2.2-beta.212 172 3/5/2025
9.2.2-beta.211 192 3/4/2025
9.2.2-beta.210 181 3/4/2025
9.2.2-beta.208 72 3/3/2025
9.2.1 2,195 3/3/2025
9.2.1-beta.207 96 3/2/2025
9.2.1-beta.206 76 3/1/2025
9.2.1-beta.205 71 2/27/2025
9.2.1-beta.204 69 2/26/2025
9.2.1-beta.203 66 2/26/2025
9.2.0 235 2/26/2025
9.2.0-beta.202 73 2/26/2025
9.2.0-beta.201 69 2/26/2025
9.2.0-beta.199 70 2/26/2025
9.2.0-beta.198 68 2/26/2025
9.1.1-beta.197 69 2/25/2025
9.1.1-beta.196 73 2/25/2025
9.1.1-beta.195 64 2/25/2025
9.1.1-beta.194 76 2/25/2025
9.1.1-beta.193 74 2/25/2025
9.1.1-beta.192 71 2/24/2025
9.1.1-beta.191 78 2/24/2025
9.1.1-beta.190 72 2/19/2025
9.1.1-beta.189 68 2/19/2025
9.1.1-beta.188 74 2/19/2025
9.1.1-beta.187 77 2/19/2025
9.1.1-beta.183 83 2/18/2025
9.1.1-beta.182 81 2/18/2025
9.1.1-beta.181 87 2/18/2025
9.1.1-beta.180 80 2/17/2025
9.1.1-beta.178 80 2/17/2025
9.1.1-beta.177 72 2/12/2025
9.1.1-beta.176 86 2/11/2025
9.1.1-beta.175 76 2/11/2025
9.1.1-beta.173 84 2/10/2025
9.1.1-beta.169 69 2/6/2025
9.1.1-beta.168 71 2/5/2025
9.1.1-beta.166 67 2/5/2025
9.1.1-beta.165 66 2/5/2025
9.1.1-beta.164 76 2/3/2025
9.1.1-beta.162 71 2/3/2025
9.1.1-beta.155 70 1/30/2025
9.1.1-beta.154 71 1/30/2025
9.1.1-beta.153 69 1/30/2025
9.1.1-beta.152 65 1/29/2025
9.1.1-beta.150 84 1/29/2025
9.1.1-beta.148 74 1/26/2025
9.1.1-beta.147 70 1/26/2025
9.1.1-beta.146 69 1/23/2025
9.1.1-beta.145 70 1/22/2025
9.1.1-beta.144 60 1/22/2025
9.1.1-beta.142 65 1/22/2025
9.1.1-beta.140 79 1/22/2025
9.1.1-beta.139 74 1/21/2025
9.1.1-beta.138 68 1/20/2025
9.1.1-beta.137 68 1/17/2025
9.1.1-beta.136 54 1/15/2025
9.1.1-beta.135 48 1/15/2025
9.1.1-beta.134 37 1/15/2025
9.1.1-beta.128 53 1/9/2025
9.1.1-beta.127 61 1/9/2025
9.1.1-beta.126 61 1/9/2025
9.1.1-beta.125 65 1/9/2025
9.1.1-beta.124 67 1/9/2025
9.1.0 209 12/12/2024
9.1.0-beta.123 80 1/3/2025
9.1.0-beta.122 72 1/3/2025
9.1.0-beta.121 74 1/2/2025
9.1.0-beta.120 74 12/30/2024
9.1.0-beta.119 69 12/30/2024
9.1.0-beta.118 74 12/30/2024
9.1.0-beta.116 67 12/30/2024
9.1.0-beta.114 74 12/30/2024
9.1.0-beta.113 76 12/30/2024
9.1.0-beta.112 66 12/18/2024
9.1.0-beta.110 72 12/16/2024
9.1.0-beta.109 79 12/12/2024
9.0.1-beta.108 72 12/12/2024
9.0.1-beta.107 67 12/11/2024
9.0.1-beta.106 77 12/12/2024
9.0.1-beta.104 76 12/11/2024