# Implementing Health Checks in ASP.NET Core

Here is a nice article on  [Implementing Health Checks in ASP.NET Core.](https://dotnetthoughts.net/implementing-health-check-aspnetcore/) 

Gist

```
public void ConfigureServices(IServiceCollection services)
{
    services.AddHealthChecks()
        .AddDbContextCheck<WeatherForecastDbContext>();
    services.AddControllers();
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    //Code omitted for brevity
    app.UseEndpoints(endpoints =>
    {
        endpoints.MapControllers();
        endpoints.MapHealthChecks("/health");
    });
}
``` 


