CommunityToolkit.Aspire.MassTransit.RabbitMQ 9.3.1-beta.248

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.3.1-beta.248
                    
NuGet\Install-Package CommunityToolkit.Aspire.MassTransit.RabbitMQ -Version 9.3.1-beta.248
                    
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.3.1-beta.248" />
                    
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.3.1-beta.248" />
                    
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.3.1-beta.248
                    
#r "nuget: CommunityToolkit.Aspire.MassTransit.RabbitMQ, 9.3.1-beta.248"
                    
#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.3.1-beta.248&prerelease
                    
Install CommunityToolkit.Aspire.MassTransit.RabbitMQ as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.MassTransit.RabbitMQ&version=9.3.1-beta.248&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.4.1-beta.270 44 4/20/2025
9.4.0 60 4/20/2025
9.4.0-beta.269 44 4/20/2025
9.4.0-beta.268 40 4/20/2025
9.3.1-beta.267 42 4/20/2025
9.3.1-beta.266 39 4/19/2025
9.3.1-beta.265 150 4/15/2025
9.3.1-beta.264 153 4/15/2025
9.3.1-beta.263 146 4/15/2025
9.3.1-beta.262 148 4/15/2025
9.3.1-beta.260 118 4/10/2025
9.3.1-beta.259 120 4/8/2025
9.3.1-beta.258 115 4/8/2025
9.3.1-beta.257 116 4/8/2025
9.3.1-beta.256 125 4/8/2025
9.3.1-beta.255 116 4/8/2025
9.3.1-beta.254 117 4/8/2025
9.3.1-beta.253 125 4/1/2025
9.3.1-beta.252 98 3/27/2025
9.3.1-beta.250 95 3/27/2025
9.3.1-beta.249 93 3/27/2025
9.3.1-beta.248 99 3/27/2025
9.3.1-beta.247 97 3/27/2025
9.3.1-beta.244 445 3/25/2025
9.3.1-beta.242 443 3/24/2025
9.3.1-beta.241 119 3/19/2025
9.3.0 394 3/19/2025
9.3.0-beta.239 112 3/19/2025
9.2.2-beta.237 114 3/19/2025
9.2.2-beta.236 87 3/14/2025
9.2.2-beta.230 129 3/13/2025
9.2.2-beta.229 113 3/13/2025
9.2.2-beta.228 128 3/11/2025
9.2.2-beta.227 126 3/11/2025
9.2.2-beta.226 124 3/11/2025
9.2.2-beta.225 119 3/11/2025
9.2.2-beta.224 124 3/11/2025
9.2.2-beta.223 125 3/10/2025
9.2.2-beta.222 126 3/10/2025
9.2.2-beta.220 130 3/9/2025
9.2.2-beta.218 124 3/9/2025
9.2.2-beta.217 166 3/7/2025
9.2.2-beta.216 167 3/7/2025
9.2.2-beta.215 155 3/7/2025
9.2.2-beta.214 168 3/5/2025
9.2.2-beta.213 161 3/5/2025
9.2.2-beta.212 158 3/5/2025
9.2.2-beta.211 164 3/4/2025
9.2.2-beta.210 169 3/4/2025
9.2.2-beta.208 58 3/3/2025
9.2.1 385 3/3/2025
9.2.1-beta.207 77 3/2/2025
9.2.1-beta.206 54 3/1/2025
9.2.1-beta.205 59 2/27/2025
9.2.1-beta.204 55 2/26/2025
9.2.1-beta.203 52 2/26/2025
9.2.0 212 2/26/2025
9.2.0-beta.202 60 2/26/2025
9.2.0-beta.201 56 2/26/2025
9.2.0-beta.199 58 2/26/2025
9.2.0-beta.198 53 2/26/2025
9.1.1-beta.197 56 2/25/2025
9.1.1-beta.196 58 2/25/2025
9.1.1-beta.195 52 2/25/2025
9.1.1-beta.194 61 2/25/2025
9.1.1-beta.193 61 2/25/2025
9.1.1-beta.192 57 2/24/2025
9.1.1-beta.191 60 2/24/2025
9.1.1-beta.190 56 2/19/2025
9.1.1-beta.189 55 2/19/2025
9.1.1-beta.188 63 2/19/2025
9.1.1-beta.187 65 2/19/2025
9.1.1-beta.183 70 2/18/2025
9.1.1-beta.182 71 2/18/2025
9.1.1-beta.181 75 2/18/2025
9.1.1-beta.180 64 2/17/2025
9.1.1-beta.178 67 2/17/2025
9.1.1-beta.177 60 2/12/2025
9.1.1-beta.176 73 2/11/2025
9.1.1-beta.175 63 2/11/2025
9.1.1-beta.173 68 2/10/2025
9.1.1-beta.169 59 2/6/2025
9.1.1-beta.168 57 2/5/2025
9.1.1-beta.166 54 2/5/2025
9.1.1-beta.165 54 2/5/2025
9.1.1-beta.164 61 2/3/2025
9.1.1-beta.162 59 2/3/2025
9.1.1-beta.155 59 1/30/2025
9.1.1-beta.154 58 1/30/2025
9.1.1-beta.153 54 1/30/2025
9.1.1-beta.152 50 1/29/2025
9.1.1-beta.150 63 1/29/2025
9.1.1-beta.148 57 1/26/2025
9.1.1-beta.147 53 1/26/2025
9.1.1-beta.146 54 1/23/2025
9.1.1-beta.145 56 1/22/2025
9.1.1-beta.144 48 1/22/2025
9.1.1-beta.142 50 1/22/2025
9.1.1-beta.140 54 1/22/2025
9.1.1-beta.139 53 1/21/2025
9.1.1-beta.138 53 1/20/2025
9.1.1-beta.137 45 1/17/2025
9.1.1-beta.136 41 1/15/2025
9.1.1-beta.135 25 1/15/2025
9.1.1-beta.134 23 1/15/2025
9.1.1-beta.128 38 1/9/2025
9.1.1-beta.127 42 1/9/2025
9.1.1-beta.126 46 1/9/2025
9.1.1-beta.125 46 1/9/2025
9.1.1-beta.124 54 1/9/2025
9.1.0 192 12/12/2024
9.1.0-beta.123 62 1/3/2025
9.1.0-beta.122 59 1/3/2025
9.1.0-beta.121 59 1/2/2025
9.1.0-beta.120 56 12/30/2024
9.1.0-beta.119 50 12/30/2024
9.1.0-beta.118 56 12/30/2024
9.1.0-beta.116 54 12/30/2024
9.1.0-beta.114 55 12/30/2024
9.1.0-beta.113 56 12/30/2024
9.1.0-beta.112 55 12/18/2024
9.1.0-beta.110 61 12/16/2024
9.1.0-beta.109 63 12/12/2024
9.0.1-beta.108 62 12/12/2024
9.0.1-beta.107 58 12/11/2024
9.0.1-beta.106 59 12/12/2024
9.0.1-beta.104 60 12/11/2024