Exemplo n.º 1
0
        /// <summary>
        /// Generate random operation Id and set it to OperationContext.
        /// </summary>
        /// <param name="telemetry">Telemetry to initialize Operation id for.</param>
        public static void GenerateOperationId(this OperationTelemetry telemetry)
        {
            if (telemetry == null)
            {
                throw new ArgumentNullException(nameof(telemetry));
            }

            telemetry.GenerateId();
        }
 /// <summary>
 /// Generate random operation Id and set it to OperationContext.
 /// </summary>
 /// <param name="telemetry">Telemetry to initialize Operation id for.</param>
 public static void GenerateOperationId(this OperationTelemetry telemetry)
 {
     telemetry.GenerateId();
 }