dotnet/aspnetcore

services.AddHealthChecks missing overload that takes delegate for configuring HealthChecksOptions

Chiusa

#8530 aperta il 14 mar 2019

 (7 commenti) (4 reazioni) (0 assegnatari)C# (10.653 fork)batch import
affected-very-fewarea-healthchecksenhancementgood first issuehelp wantedseverity-minor

Metriche repository

Star
 (37.933 stelle)
Metriche merge PR
 (Merge medio 16g 9h) (258 PR mergiate in 30 g)

Descrizione

We need to add the overload to Health Checks to enable passing an options configuration delegate when adding Health Checks to services, e.g.:

services.AddHealthChecks(options =>
{
    options.AllowCachingResponses = true;
}).AddCheck<MyHealthCheck>()

@rynowak @glennc

Guida contributor