Dloizides.HealthChecks.Npgsql 1.0.0

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

Dloizides.HealthChecks.Npgsql

PostgreSQL readiness probe for ServiceDefaults.HealthChecks.

Split out of the core package at ServiceDefaults.HealthChecks 2.0.0: the core carries the live/ready/start tags and MapHealthCheckEndpoints() with no third-party dependencies, so a service with no database (the nine BFFs, for example) no longer resolves AspNetCore.HealthChecks.NpgSql and Npgsql.

Install

dotnet add package Dloizides.HealthChecks.Npgsql

Use

The namespace matches the core package, so no using change is needed:

using ServiceDefaults.HealthChecks;

builder.AddHealthCheckDefaults();                              // core
builder.AddPostgresReadinessCheckFromConfiguration("MyDb");    // this package

The check is tagged ready, so it is served by /health/ready and never by /health/live.

Product Compatible and additional computed target framework versions.
.NET 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 (1)

Showing the top 1 NuGet packages that depend on Dloizides.HealthChecks.Npgsql:

Package Downloads
Dloizides.ServiceDefaults

Aspire-style service defaults for ASP.NET Core: OpenTelemetry (logging/metrics/tracing) wiring, HTTP resilience + service discovery, standard health-check registration (via ServiceDefaults.HealthChecks), and the platform endpoint map (anonymous /health/live|start|ready Kubernetes probes plus an ACME HTTP-01 no-op). Extracted from ~8 services that had each hand-copied the ServiceDefaults/Extensions.cs; normalizes the PostgressConnection connection-string typo by resolving both the correct (PostgresConnection) and legacy-typo keys.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 91 9/8/2026
0.9.10 52 9/8/2026