PROPERTY

HealthReport.Status

Reports the most severe status among the executed health checks. An empty report is healthy by aggregation convention; that does not prove that a required dependency was checked. Requires the ASP.NET Core shared framework or compatible health-check packages.

Formal Syntax & Structure

csharp syntaxcsharp
report.Status

Working Example

Example Snippetcsharp
using System;using System.Collections.Generic;using System.Runtime.InteropServices;using Microsoft.Extensions.Diagnostics.HealthChecks;using Microsoft.AspNetCore.Diagnostics.HealthChecks;var report = new HealthReport(new Dictionary<string,HealthReportEntry>(),TimeSpan.Zero); Console.WriteLine(report.Status); // Healthy
C# & .NET Reference