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
<PackageReference Include="JorgeCostaMacia.Bus.RabbitMQ.HealthChecks" Version="3.2.2" />
<PackageVersion Include="JorgeCostaMacia.Bus.RabbitMQ.HealthChecks" Version="3.2.2" />
<PackageReference Include="JorgeCostaMacia.Bus.RabbitMQ.HealthChecks" />
paket add JorgeCostaMacia.Bus.RabbitMQ.HealthChecks --version 3.2.2
#r "nuget: JorgeCostaMacia.Bus.RabbitMQ.HealthChecks, 3.2.2"
#:package JorgeCostaMacia.Bus.RabbitMQ.HealthChecks@3.2.2
#addin nuget:?package=JorgeCostaMacia.Bus.RabbitMQ.HealthChecks&version=3.2.2
#tool nuget:?package=JorgeCostaMacia.Bus.RabbitMQ.HealthChecks&version=3.2.2
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.
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 (
Unhealthyby default; passfailureStatusto 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.
- Repository: github.com/JorgeCostaMacia/bus-net
- Issues & requests: open an issue
- Contributing: CONTRIBUTING.md
- Security: report a vulnerability
Author: Jorge Costa Maciá
| Product | Versions 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. |
-
net10.0
- JorgeCostaMacia.Bus.RabbitMQ (>= 3.2.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.10)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.10)
-
net8.0
- JorgeCostaMacia.Bus.RabbitMQ (>= 3.2.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.10)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.10)
-
net9.0
- JorgeCostaMacia.Bus.RabbitMQ (>= 3.2.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.10)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.