Skip to content

Instantly share code, notes, and snippets.



Last active May 22, 2017
What would you like to do?
public void ConfigureServices(IServiceCollection services)
services.AddHealthChecks(checks =>
// First parameter is the URL you want to check
// The second parameter is the CacheDuration of how long you want to hold onto the HealthCheckResult
// The default is 5 minutes, and in my case, I don't really want any cache at all
// because I don't want to wait up to 5 minutes if my service goes down to be notified about it
checks.AddUrlCheck("", TimeSpan.FromMilliseconds(1));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment