示例#1
0
 /// <summary>
 /// Sends Telemetry for the end of a build 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)}
 /// call.
 /// </param>
 /// <param name='errorCount'>
 /// The number of errors reported for this build.
 /// </param>
 /// <param name='warningCount'>
 /// The number of warnings reported for this build.
 /// </param>
 /// <param name='logUri'>
 /// The Uri where logs for this build may be accessed.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task FinishBuildWorkItemAsync(this ITelemetry operations, string xHelixJobToken, string id, int errorCount, int warningCount, string logUri = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     (await operations.FinishBuildWorkItemWithHttpMessagesAsync(xHelixJobToken, id, errorCount, warningCount, logUri, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }