CommunityToolkit.Aspire.MassTransit.RabbitMQ 9.1.1-beta.191

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