Example #1
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='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='query'>
 /// Optional.
 /// </param>
 /// <returns>
 /// List Subscriptions operation response details.
 /// </returns>
 public static Task <SubscriptionListResponse> ListAsync(this ISubscriptionsOperations operations, string resourceGroupName, string serviceName, QueryParameters query)
 {
     return(operations.ListAsync(resourceGroupName, serviceName, query, CancellationToken.None));
 }
Example #2
0
 public IEnumerable <ISubscription> List()
 {
     return(Extensions.Synchronize(() => innerCollection.ListAsync())
            .AsContinuousCollection(link => Extensions.Synchronize(() => innerCollection.ListNextAsync(link)))
            .Select(inner => WrapModel(inner)));
 }
 /// <summary>
 /// Gets all subscriptions for a tenant.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <SubscriptionModel> List(this ISubscriptionsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Example #4
0
 /// <summary>
 /// Get the list of subscriptions.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IEnumerable <Subscription> List(this ISubscriptionsOperations operations, ODataQuery <Subscription> odataQuery = default(ODataQuery <Subscription>))
 {
     return(operations.ListAsync(odataQuery).GetAwaiter().GetResult());
 }