December 2019
Intermediate to advanced
510 pages
11h 33m
English
Databases are usually one of the main dependencies of a web service. Therefore, it is always essential to check the connection between the service and the database. Let's start by learning how to implement health checks using the AspNetCore.HealthChecks.SqlServer (https://www.nuget.org/packages/AspNetCore.HealthChecks.SqlServer/) and Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore (https://www.nuget.org/packages/Microsoft.Extensions.Diagnostics.HealthChecks.EntityFrameworkCore/) packages. We are going to apply these changes to the catalog service project. Let's start by adding this package to the Catalog.API project:
dotnet add package AspNetCore.HealthChecks.SqlServer
The AspNetCore.HealthChecks.SqlServer ...
Read now
Unlock full access