共用方式為


IResourceUtilizationPublisher.PublishAsync 方法

定義

每當計算資源使用率時,監視基礎結構就會叫用這個方法。

public:
 System::Threading::Tasks::ValueTask PublishAsync(Microsoft::Extensions::Diagnostics::ResourceMonitoring::ResourceUtilization utilization, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.ValueTask PublishAsync (Microsoft.Extensions.Diagnostics.ResourceMonitoring.ResourceUtilization utilization, System.Threading.CancellationToken cancellationToken);
abstract member PublishAsync : Microsoft.Extensions.Diagnostics.ResourceMonitoring.ResourceUtilization * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Function PublishAsync (utilization As ResourceUtilization, cancellationToken As CancellationToken) As ValueTask

參數

utilization
ResourceUtilization

系統目前資源使用率的快照集。

cancellationToken
CancellationToken

CancellationToken,用來取消發佈作業。

傳回

追蹤發行集作業的值工作。

適用於