ProtoTest.Messaging.RabbitMq 1.1.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package ProtoTest.Messaging.RabbitMq --version 1.1.2
                    
NuGet\Install-Package ProtoTest.Messaging.RabbitMq -Version 1.1.2
                    
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="ProtoTest.Messaging.RabbitMq" Version="1.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ProtoTest.Messaging.RabbitMq" Version="1.1.2" />
                    
Directory.Packages.props
<PackageReference Include="ProtoTest.Messaging.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 ProtoTest.Messaging.RabbitMq --version 1.1.2
                    
#r "nuget: ProtoTest.Messaging.RabbitMq, 1.1.2"
                    
#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 ProtoTest.Messaging.RabbitMq@1.1.2
                    
#: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=ProtoTest.Messaging.RabbitMq&version=1.1.2
                    
Install as a Cake Addin
#tool nuget:?package=ProtoTest.Messaging.RabbitMq&version=1.1.2
                    
Install as a Cake Tool

ProtoTest.Messaging.RabbitMq

The RabbitMQ adapter for ProtoTest.Messaging.

dotnet add package ProtoTest.Messaging.RabbitMq

Register it with UseRabbitMq(). Messages are published to exchanges and each test receives its own temporary queue for destinations it awaits. Declare them in code with Tap, so the tap binds during setup and does not miss a message published earlier in the test:

builder.AddMessaging(messaging => messaging.Tap("invoice-paid").UseRabbitMq());

A destination the suite owns and nothing else declares is created with Declare, once per run during setup and before any tap binds: a fanout, durable, non-auto-delete exchange. A suite that owns the broker and publishes its own events needs no raw broker client:

builder.AddMessaging(messaging => messaging
    .Declare("invoice-paid")
    .Tap("invoice-paid")
    .UseRabbitMq());

A destination that already exists with that shape, or a repeated declaration, is a no-op.

ProtoDestination.Queue(...) consumes a queue as it exists instead of binding to an exchange, which is how a dead-letter queue is awaited: the queue is never declared, purged or deleted, and what the test reads is removed. A queue with another reader is shared, so prefer the exchange that feeds it where the suite runs in parallel.

A publish can name a routing key, and an await can select one; the delivery carries it in message.RoutingKey.

The RabbitMQ connection is shared for the run, while awaited messages remain isolated per test.

Learn more

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 is compatible.  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
1.1.6 39 10/4/2026
1.1.5 50 10/3/2026
1.1.4 37 10/3/2026
1.1.3 45 10/3/2026
1.1.2 36 10/3/2026
1.1.1 41 10/2/2026
1.1.0 85 10/2/2026
1.0.1 158 9/20/2026
1.0.0 86 9/20/2026