JorgeCostaMacia.Bus.RabbitMQ.HealthChecks 3.2.2

Prefix Reserved
dotnet add package JorgeCostaMacia.Bus.RabbitMQ.HealthChecks --version 3.2.2
                    
NuGet\Install-Package JorgeCostaMacia.Bus.RabbitMQ.HealthChecks -Version 3.2.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="JorgeCostaMacia.Bus.RabbitMQ.HealthChecks" Version="3.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JorgeCostaMacia.Bus.RabbitMQ.HealthChecks" Version="3.2.2" />
                    
Directory.Packages.props
<PackageReference Include="JorgeCostaMacia.Bus.RabbitMQ.HealthChecks" />
                    
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 JorgeCostaMacia.Bus.RabbitMQ.HealthChecks --version 3.2.2
                    
#r "nuget: JorgeCostaMacia.Bus.RabbitMQ.HealthChecks, 3.2.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 JorgeCostaMacia.Bus.RabbitMQ.HealthChecks@3.2.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=JorgeCostaMacia.Bus.RabbitMQ.HealthChecks&version=3.2.2
                    
Install as a Cake Addin
#tool nuget:?package=JorgeCostaMacia.Bus.RabbitMQ.HealthChecks&version=3.2.2
                    
Install as a Cake Tool

JorgeCostaMacia.Bus.RabbitMQ.HealthChecks

Health check for JorgeCostaMacia.Bus.RabbitMQ — reports whether the bus's shared broker connection is open, for ASP.NET Core health endpoints (liveness/readiness). No probe connection, no extra I/O: the check reads the state of the one long-lived connection the transport already owns. A separate package so the transport stays free of the HealthChecks dependency.

NuGet Downloads Build License


Install

dotnet add package JorgeCostaMacia.Bus.RabbitMQ.HealthChecks

Usage

One AddRabbitMQBus call plugs the check onto the standard health-check pipeline — after AddBusContext, which registers the shared connection the check reads. Tag it (typically "ready") to pick which health endpoints run it.

services.AddBusContext(configuration,
    producer => producer.AddCommand<PlaceOrder>("orders"));

services.AddHealthChecks().AddRabbitMQBus(tags: ["ready"]);

The check reports:

  • Healthy — the connection is open, or it has never been opened yet: the bus opens it lazily on the first send/consume, so an untouched connection is not a failure.
  • The registration's failure status (Unhealthy by default; pass failureStatus to soften it) — the connection has dropped; the client's automatic recovery keeps retrying, and the check flips back to healthy the moment it succeeds.

The check registers under the name bus-rabbitmq (override it with name when one service runs several buses).

Requirements

One of the following SDKs: .NET 8 / 9 / 10 (.NET 10 recommended).

Brings JorgeCostaMacia.Bus.RabbitMQ (the bus over RabbitMQ) and Microsoft.Extensions.Diagnostics.HealthChecks transitively.

About

JorgeCostaMacia.Bus.RabbitMQ.HealthChecks is part of bus-net — messaging building blocks, each scoped to a single concern.

Author: Jorge Costa Maciá

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
3.2.2 74 7/22/2026
3.2.1 77 7/22/2026
3.2.0 81 7/21/2026
3.1.0 86 7/20/2026
3.0.0 84 7/19/2026
2.0.1 94 7/15/2026
2.0.0 89 7/14/2026