dotnet/aspnetcore

services.AddHealthChecks missing overload that takes delegate for configuring HealthChecksOptions

クローズ

#8,530 opened on 2019/03/14

 (7 件のコメント) (4 件のリアクション) (0 人の担当者)C# (10,653 件のフォーク)batch import
affected-very-fewarea-healthchecksenhancementgood first issuehelp wantedseverity-minor

Repository metrics

Stars
 (37,933 個のスター)
PR merge metrics
 (平均マージ 16d 9h) (30d で 258 merged PRs)

説明

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

コントリビューターガイド