/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='repository'> /// </param> /// <param name='commit'> /// </param> /// <param name='buildNumber'> /// </param> /// <param name='channelId'> /// </param> /// <param name='notBefore'> /// </param> /// <param name='notAfter'> /// </param> /// <param name='loadCollections'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <Build> > GetAsync(this IBuilds operations, string repository = default(string), string commit = default(string), string buildNumber = default(string), int?channelId = default(int?), System.DateTimeOffset?notBefore = default(System.DateTimeOffset?), System.DateTimeOffset?notAfter = default(System.DateTimeOffset?), bool?loadCollections = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(repository, commit, buildNumber, channelId, notBefore, notAfter, loadCollections, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Returns the build detail for the given build ID /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='buildId'> /// The build ID /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='appName'> /// The name of the application /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Build> GetAsync(this IBuilds operations, int buildId, string ownerName, string appName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(buildId, ownerName, appName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }