Ejemplo n.º 1
0
 /// <summary>
 /// Gets all the Event Hubs in a Namespace.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group within the azure subscription.
 /// </param>
 /// <param name='namespaceName'>
 /// The Namespace name
 /// </param>
 /// <param name='skip'>
 /// Skip is only used if a previous operation returned a partial result. If a
 /// previous response contains a nextLink element, the value of the nextLink
 /// element will include a skip parameter that specifies a starting point to
 /// use for subsequent calls.
 /// </param>
 /// <param name='top'>
 /// May be used to limit the number of results to the most recent N
 /// usageDetails.
 /// </param>
 public static IPage <Eventhub> ListByNamespace(this IEventHubsOperations operations, string resourceGroupName, string namespaceName, int?skip = default(int?), int?top = default(int?))
 {
     return(operations.ListByNamespaceAsync(resourceGroupName, namespaceName, skip, top).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets all the Event Hubs in a service bus Namespace.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name
 /// </param>
 public static IPage <Eventhub> ListByNamespace(this IEventHubsOperations operations, string resourceGroupName, string namespaceName)
 {
     return(operations.ListByNamespaceAsync(resourceGroupName, namespaceName).GetAwaiter().GetResult());
 }