Example #1
0
 /// <summary>
 /// Get the usage for a subscription
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The identifier for the physical azure location.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <UsageListResult> ListAsync(this IContainerGroupUsageOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 /// Get the usage for a subscription
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// The identifier for the physical azure location.
 /// </param>
 public static UsageListResult List(this IContainerGroupUsageOperations operations, string location)
 {
     return(operations.ListAsync(location).GetAwaiter().GetResult());
 }