Class HealthCheckUtility
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
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
predicateFunc<HealthCheckRegistration, bool>the value of Predicate