Esempio n. 1
0
 /// <summary>
 /// Lists the events 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='startDate'>
 /// Start date
 /// </param>
 /// <param name='endDate'>
 /// End date
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Events> ListAsync(this IEventsByBillingProfileOperations operations, string billingAccountId, string billingProfileId, string startDate, string endDate, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(billingAccountId, billingProfileId, startDate, endDate, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Lists the events 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='startDate'>
 /// Start date
 /// </param>
 /// <param name='endDate'>
 /// End date
 /// </param>
 public static Events List(this IEventsByBillingProfileOperations operations, string billingAccountId, string billingProfileId, string startDate, string endDate)
 {
     return(operations.ListAsync(billingAccountId, billingProfileId, startDate, endDate).GetAwaiter().GetResult());
 }