Skip to Content
C# 7 and .NET Core 2.0 High Performance
book

C# 7 and .NET Core 2.0 High Performance

by Ovais Mehboob Ahmed Khan
April 2018
Intermediate to advanced
300 pages
7h 41m
English
Packt Publishing
Content preview from C# 7 and .NET Core 2.0 High Performance

Implementing health checks

Health checks are part of the proactive strategy, where the services' health can be monitored in a timely fashion. They also allow you to take actions proactively if any service is not responding or is in a failure state.

In ASP.NET Core, we can easily implement health checks by using the HealthChecks library, which is available as a NuGet package. To use HealthChecks, we can just simply add the following NuGet package to our ASP.NET Core MVC or Web API project:

Microsoft.AspNetCore.HealthChecks

We have to add this package to the application that monitors the services and the services whose health needs to be monitored.

Add the following code in the ConfigureServices method of the Startup class of the application ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Professional C# 7 and .NET Core 2.0, 7th Edition

Professional C# 7 and .NET Core 2.0, 7th Edition

Christian Nagel
Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Pro ASP.NET Web API: HTTP Web Services in ASP.NET

Tugberk Ugurlu, Alexander Zeitler, Ali Kheyrollahi
Enterprise Application Development with C# 9 and .NET 5

Enterprise Application Development with C# 9 and .NET 5

Ravindra Akella, Rishabh Verma, Arun Kumar Tamirisa, Suneel Kumar Kunani, Bhupesh Guptha Muthiyalu

Publisher Resources

ISBN: 9781788470049Supplemental Content