Last active
May 22, 2017 05:46
-
-
Save scottsauber/be7ea44c24f63e47c20cb4e2ec2e68c6 to your computer and use it in GitHub Desktop.
Custom Health Checks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddSingleton<CDriveHasMoreThan1GbFreeHealthCheck>(); | |
services.AddHealthChecks(checks => | |
{ | |
checks.AddCheck<CDriveHasMoreThan1GbFreeHealthCheck>("C Drive has more than 1 GB Free"); | |
}); | |
services.AddMvc(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment