/// <summary> /// Get the number of iot hubs in the subscription /// </summary> /// <remarks> /// Get the number of free and paid iot hubs in the subscription /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <UserSubscriptionQuotaListResult> GetSubscriptionQuotaAsync(this IResourceProviderCommonOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetSubscriptionQuotaWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get the number of iot hubs in the subscription /// </summary> /// <remarks> /// Get the number of free and paid iot hubs in the subscription /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static UserSubscriptionQuotaListResult GetSubscriptionQuota(this IResourceProviderCommonOperations operations) { return(operations.GetSubscriptionQuotaAsync().GetAwaiter().GetResult()); }