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
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.