/// <summary> /// Gets the current usage count and the limit for the resources of the /// location under the subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// The resource location without whitespace. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IEnumerable <Usage> > GetUsageAsync(this ILocationsOperations operations, string location, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUsageWithHttpMessagesAsync(location, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }