dotnet/aspnetcore

services.AddHealthChecks missing overload that takes delegate for configuring HealthChecksOptions

已關閉

#8,530 建立於 2019年3月14日

 (7 則留言) (4 個反應) (0 位負責人)C# (10,653 個分叉)batch import
affected-very-fewarea-healthchecksenhancementgood first issuehelp wantedseverity-minor

倉庫指標

星標
 (37,933 顆星)
PR 合併指標
 (平均合併 16天 9小時) (30 天內合併 258 個 PR)

描述

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

貢獻者指南