/// <summary> /// Sends Telemetry for the end of an XUnit Test 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.StartXUnitWorkItem(System.String,System.String)} /// call. /// </param> /// <param name='exitCode'> /// The exitCode of this work item. /// </param> /// <param name='resultsXmlUri'> /// The Uri where XUnit v2 format test results can be accessed. /// </param> /// <param name='logUri'> /// The Uri where logs for this test run may be accessed. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task FinishXUnitWorkItemAsync(this ITelemetry operations, string xHelixJobToken, string id, int exitCode, string resultsXmlUri, string logUri = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { (await operations.FinishXUnitWorkItemWithHttpMessagesAsync(xHelixJobToken, id, exitCode, resultsXmlUri, logUri, null, cancellationToken).ConfigureAwait(false)).Dispose(); }