IResourceUtilizationPublisher.PublishAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.