/// <summary> /// Get the list of Cache Usage Models available to this subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <UsageModelsResult> ListAsync(this IUsageModels operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get the list of Cache Usage Models available to this subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static UsageModelsResult List(this IUsageModels operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }