/// <summary> /// Lists the lots by billingAccountId and billingProfileId for given start and /// end date. /// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountId'> /// BillingAccount ID /// </param> /// <param name='billingProfileId'> /// Billing Profile Id. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Lots> ListAsync(this ILotsByBillingProfileOperations operations, string billingAccountId, string billingProfileId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(billingAccountId, billingProfileId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists the lots by billingAccountId and billingProfileId for given start and /// end date. /// <see href="https://docs.microsoft.com/en-us/rest/api/consumption/" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='billingAccountId'> /// BillingAccount ID /// </param> /// <param name='billingProfileId'> /// Billing Profile Id. /// </param> public static Lots List(this ILotsByBillingProfileOperations operations, string billingAccountId, string billingProfileId) { return(operations.ListAsync(billingAccountId, billingProfileId).GetAwaiter().GetResult()); }