Show / Hide Table of Contents

    Class MetricUtils

    The metric utils class

    Inheritance
    Object
    MetricUtils
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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

    Back to top Copyright (c) Microsoft Corporation. All rights reserved.