/// <summary>
 /// List all products.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.IProductsOperations.
 /// </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 Products operation response details.
 /// </returns>
 public static Task <ProductListResponse> ListAsync(this IProductsOperations operations, string resourceGroupName, string serviceName, QueryParameters query)
 {
     return(operations.ListAsync(resourceGroupName, serviceName, query, CancellationToken.None));
 }
Example #2
0
 /// <summary>
 /// Returns a list of products.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroup'>
 /// Name of the resource group.
 /// </param>
 /// <param name='registrationName'>
 /// Name of the Azure Stack registration.
 /// </param>
 public static IPage <Product> List(this IProductsOperations operations, string resourceGroup, string registrationName)
 {
     return(operations.ListAsync(resourceGroup, registrationName).GetAwaiter().GetResult());
 }