/// <summary> /// Gets the list of Images in the subscription. Use nextLink property in the /// response to get the next page of Images. Do this till nextLink is null to /// fetch all the Images. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Image> > ListAsync(this IImagesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }