Respire.HealthChecks
0.12.0
Prefix Reserved
dotnet add package Respire.HealthChecks --version 0.12.0
NuGet\Install-Package Respire.HealthChecks -Version 0.12.0
<PackageReference Include="Respire.HealthChecks" Version="0.12.0" />
<PackageVersion Include="Respire.HealthChecks" Version="0.12.0" />
<PackageReference Include="Respire.HealthChecks" />
paket add Respire.HealthChecks --version 0.12.0
#r "nuget: Respire.HealthChecks, 0.12.0"
#:package Respire.HealthChecks@0.12.0
#addin nuget:?package=Respire.HealthChecks&version=0.12.0
#tool nuget:?package=Respire.HealthChecks&version=0.12.0
Respire.HealthChecks
ASP.NET Core health checks that probe an existing Respire client connection.
Install
dotnet add package Respire.HealthChecks
dotnet add package Respire.DependencyInjection
Usage
Use this example in an ASP.NET Core project created with dotnet new web.
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Respire.DependencyInjection;
using Respire.HealthChecks;
var builder = WebApplication.CreateBuilder();
builder.Services.AddRespire("redis://localhost:6379");
builder.Services.AddHealthChecks().AddRespire(new RespireHealthCheckOptions
{
ProbeTimeout = TimeSpan.FromSeconds(2),
}, tags: ["ready"]);
var app = builder.Build();
app.MapHealthChecks("/health/ready");
app.Run();
The check opens no connections. A client registered with AddRespire connects in the background when the host starts, so readiness does not wait for application traffic. A lazy client created another way reports unhealthy until it connects.
Read the guide for configuration, requirements, and further examples.
| 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 was computed. 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
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.13)
- Respire (>= 0.12.0)
-
net8.0
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.13)
- Respire (>= 0.12.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Respire.HealthChecks:
| Package | Downloads |
|---|---|
|
Respire.Aspire
Respire client registration, configuration, health checks and telemetry for .NET Aspire. |
GitHub repositories
This package is not used by any popular GitHub repositories.