Respire.HealthChecks
0.9.0
Prefix Reserved
See the version list below for details.
dotnet add package Respire.HealthChecks --version 0.9.0
NuGet\Install-Package Respire.HealthChecks -Version 0.9.0
<PackageReference Include="Respire.HealthChecks" Version="0.9.0" />
<PackageVersion Include="Respire.HealthChecks" Version="0.9.0" />
<PackageReference Include="Respire.HealthChecks" />
paket add Respire.HealthChecks --version 0.9.0
#r "nuget: Respire.HealthChecks, 0.9.0"
#:package Respire.HealthChecks@0.9.0
#addin nuget:?package=Respire.HealthChecks&version=0.9.0
#tool nuget:?package=Respire.HealthChecks&version=0.9.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 lazy client that has never connected reports unhealthy. Connect or send a bounded PING during startup when initial readiness is required.
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.9.0)
-
net8.0
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.13)
- Respire (>= 0.9.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.