/// <summary>
 /// Gets all subscriptions for a tenant.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <SubscriptionModel> ListNext(this ISubscriptionsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Example #2
0
 /// <summary>
 /// List all subscriptions of the Api Management service instance.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.ISubscriptionsOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. NextLink from the previous successful call to List
 /// operation.
 /// </param>
 /// <returns>
 /// List Subscriptions operation response details.
 /// </returns>
 public static Task <SubscriptionListResponse> ListNextAsync(this ISubscriptionsOperations operations, string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }
Example #3
0
 public IEnumerable <ISubscription> List()
 {
     return(Extensions.Synchronize(() => innerCollection.ListAsync())
            .AsContinuousCollection(link => Extensions.Synchronize(() => innerCollection.ListNextAsync(link)))
            .Select(inner => WrapModel(inner)));
 }