A health check to verify configuration values.
Package | Version |
---|---|
AspNetCore.HealthChecks.Configuration |
Install the AspNetCore.HealthChecks.Configuration NuGet package.
> dotnet add package AspNetCore.HealthChecks.Configuration
or
PM> Install-Package AspNetCore.HealthChecks.Configuration
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddHealthChecks()
.AddConfiguration(configuration, o => o.NotContains("abc"));
}
}
MIT License