Share via


IResourceUtilizationPublisher.PublishAsync Method

Definition

This method is invoked by the monitoring infrastructure whenever resource utilization is computed.

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

Parameters

utilization
ResourceUtilization

A snapshot of the system's current resource utilization.

cancellationToken
CancellationToken

A CancellationToken used to cancel the publish operation.

Returns

A value task to track the publication operation.

Applies to