示例#1
0
 /// <summary>
 /// Sends Telemetry for an error from a work item.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='xHelixJobToken'>
 /// </param>
 /// <param name='id'>
 /// The id returned from the
 /// {M:Helix.LifeTime.Web.Controllers.Api_2018_03_14.TelemetryApiController.StartBuildWorkItem(System.String,System.Uri)}
 /// or
 /// {M:Helix.LifeTime.Web.Controllers.Api_2018_03_14.TelemetryApiController.StartXUnitWorkItem(System.String,System.String)}
 /// call.
 /// </param>
 /// <param name='eid'>
 /// The id of the error.
 /// </param>
 /// <param name='message'>
 /// The error message.
 /// </param>
 /// <param name='logUri'>
 /// The Uri where error logs may be accessed.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task ErrorAsync(this ITelemetry operations, string xHelixJobToken, string id, string eid, string message = default(string), string logUri = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     (await operations.ErrorWithHttpMessagesAsync(xHelixJobToken, id, eid, message, logUri, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }