Soenneker.Controllers.Health 11.0.225

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

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Controllers.Health

Adds an anonymous MVC liveness endpoint at GET /health.

Install

dotnet add package Soenneker.Controllers.Health

Register the controller

using Soenneker.Controllers.Health;

builder.Services
    .AddControllers()
    .AddApplicationPart(typeof(HealthController).Assembly);

Map controllers in the normal ASP.NET Core pipeline:

app.MapControllers();

Response

GET /health

The endpoint always returns 200 OK when the application can execute the controller:

  • When configuration key Environment is Local or Development, the JSON response body is "API is online".
  • For every other value, including a missing value, the response has no body.

The controller declares API version 1 through ASP.NET API Versioning, but its route contains no version segment. The host's configured API-version reader determines whether callers must supply a version.

Practical notes

  • This is a liveness signal only. It does not check databases, queues, downstream APIs, disk, or application readiness.
  • The endpoint is marked AllowAnonymous and excluded from API Explorer.
  • If an orchestrator needs readiness or dependency checks, use ASP.NET Core Health Checks alongside or instead of this controller.
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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
11.0.225 45 11/14/2026
11.0.224 116 11/11/2026
11.0.223 50 11/11/2026
11.0.222 45 11/11/2026
11.0.221 52 11/11/2026
11.0.220 274 10/27/2026
11.0.219 95 10/27/2026
11.0.218 114 10/26/2026
11.0.216 101 10/26/2026
11.0.215 99 10/26/2026
11.0.214 92 10/26/2026
11.0.213 103 10/26/2026
4.0.212 534 10/15/2026
4.0.211 101 10/15/2026
4.0.210 107 10/14/2026
4.0.209 110 10/14/2026
4.0.208 99 10/14/2026
4.0.206 107 10/14/2026
4.0.205 109 10/14/2026
4.0.204 106 10/14/2026
Loading failed

Update dependency Soenneker.Enums.DeployEnvironment to 11.0.265 (#821)