Class MetricUtils
The metric utils class
Inherited Members
Namespace: Microsoft.Graph.Communications.Common
Assembly: Microsoft.Graph.Communications.Common.dll
Syntax
public static class MetricUtils
Methods
MeasureDurationAsync(Func<Task>, Action<Int64>)
Mesure the duration of task.
Declaration
public static Task MeasureDurationAsync(Func<Task> task, Action<long> setMetricTask)
Parameters
Type | Name | Description |
---|---|---|
Func<Task> | task | The task to measure |
Action<Int64> | setMetricTask | The task to set metric |
Returns
Type | Description |
---|---|
Task | The task for wait |