Table of Contents

Class HealthCheckUtility

Namespace
Songhay.Web
Assembly
SonghayCore.Web.dll

Shared routines for ASP.NET Health Checks

public static class HealthCheckUtility
Inheritance
HealthCheckUtility
Inherited Members

Methods

GetHealthCheckOptionsForZeroChecks()

Returns HealthCheckOptions that prevent any checks from running.

public static HealthCheckOptions GetHealthCheckOptionsForZeroChecks()

Returns

HealthCheckOptions

Remarks

These options are useful for a liveness check. A 200 returned just means the process can serve a request.

GetHealthCheckOptionsWithFiltering(Func<HealthCheckRegistration, bool>?)

Returns HealthCheckOptions that prevent any checks from running.

public static HealthCheckOptions GetHealthCheckOptionsWithFiltering(Func<HealthCheckRegistration, bool>? predicate)

Parameters

predicate Func<HealthCheckRegistration, bool>

the value of Predicate

Returns

HealthCheckOptions