IResourceUtilizationPublisher.PublishAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
每當計算資源使用率時,監視基礎結構就會叫用這個方法。
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,用來取消發佈作業。
傳回
追蹤發行集作業的值工作。