From the course: ASP.NET Core: Health Checks and Logging

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Add a health check to the sample app

Challenge: Add a health check to the sample app - ASP.NET Core Tutorial

From the course: ASP.NET Core: Health Checks and Logging

Start my 1-month free trial

Challenge: Add a health check to the sample app

(upbeat music) - [Instructor] It's time for a coding challenge. So far, we have two health checks in our web application. First of all, we check whether the SQL server database is still there and then, you know, we have a random check which basically always returns healthy. But there is at least one thing we are not checking yet. We do not verify whether the API is available, whether the server the API runs on is there. And there are different approaches. You could write your own health check similar to the my random health check. And that health check then tries to call the API somehow. Or you could remember that for the SQL server health check we didn't write that much code, we were using a pre-existing package. So, maybe there's something similar. Both approaches are valid. And, in the solution, I will show you both.

Contents