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用于取消发布操作的 。

返回

用于跟踪发布操作的值任务。

适用于