-
Show the simplest way to use health check functionality using
app.UseHealthChecks
. -
Customize the message returned by
app.UseHealthChecks
. -
Start implementing
IHealthCheck
to provide status information for the health check service. In this example, it will always return failure because we just throw an exception in the implementation. You will see how the health check handles an unhandled exception. -
Implement a
IHealthCheck
that check the status of a url. This is the first version of the check so it is primitive but it is also easier to understand. We will go to a more sophisticated multi check in the next examples. -
Similar to the previous example except that now there are two checks, one fails and one successful.
-
Similar to the previous example except that one of the check reports "Degraded" status by using
context.Registration.FailureStatus = HealthStatus.Degraded;
.
dotnet8