/// <summary> /// Lists the available namespaces within a resourceGroup. (see /// http://msdn.microsoft.com/en-us/library/azure/hh780759.aspx for /// more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.NotificationHubs.INamespaceOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. If resourceGroupName /// value is null the method lists all the namespaces within /// subscription /// </param> /// <returns> /// The response of the List Namespace operation. /// </returns> public static Task <NamespaceListResponse> ListAsync(this INamespaceOperations operations, string resourceGroupName) { return(operations.ListAsync(resourceGroupName, CancellationToken.None)); }