ASP.NET full framework implementation of ASP.NET Core health checks.
The recommended installation method is the RimDev.AspNet.Diagnostics.HealthChecks NuGet package.
PM> Install-Package RimDev.AspNet.Diagnostics.HealthChecks
Then, use it like this in an OWIN Startup class:
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseHealthChecks(
"/_health",
new HealthCheckConfig("noop", new NoopHealthCheck()),
new HealthCheckConfig("ping", new PingHealthCheck(new PingHealthCheckOptions().AddHost("localhost", 1000))));
}
}
- .NET Framework 4.6.2 or later
MIT