Skip to content

AnthonyDewhirst/RimDev.AspNet.Diagnostics.HealthChecks

 
 

Repository files navigation

RimDev.AspNet.Diagnostics.HealthChecks

ASP.NET full framework implementation of ASP.NET Core health checks.

Usage

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))));
    }
}

Requirements

  • .NET Framework 4.6.2 or later

License

MIT

About

ASP.NET full framework implementation of ASP.NET Core health checks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 78.3%
  • PowerShell 21.5%
  • Batchfile 0.2%