共用方式為


IHealthCheckPublisher.PublishAsync(HealthReport, CancellationToken) 方法

定義

發佈提供的 report

public:
 System::Threading::Tasks::Task ^ PublishAsync(Microsoft::Extensions::Diagnostics::HealthChecks::HealthReport ^ report, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task PublishAsync (Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport report, System.Threading.CancellationToken cancellationToken);
abstract member PublishAsync : Microsoft.Extensions.Diagnostics.HealthChecks.HealthReport * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function PublishAsync (report As HealthReport, cancellationToken As CancellationToken) As Task

參數

report
HealthReport

HealthReport。 一組健康狀態檢查的執行結果。

cancellationToken
CancellationToken

CancellationToken

傳回

在發佈完成時將完成的 Task

例外狀況

取消標記已取消。 此例外狀況會儲存在傳回的工作中。

適用於