/// <summary> /// Checks the availability of the given notificationHub in a /// namespace. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/jj870968.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.NotificationHubs.INotificationHubOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='namespaceName'> /// Required. The namespace name. /// </param> /// <param name='parameters'> /// Required. The notificationHub name. /// </param> /// <returns> /// Response of the Check NameAvailability operation. /// </returns> public static Task <CheckAvailabilityResponse> CheckAvailabilityAsync(this INotificationHubOperations operations, string resourceGroupName, string namespaceName, CheckAvailabilityParameters parameters) { return(operations.CheckAvailabilityAsync(resourceGroupName, namespaceName, parameters, CancellationToken.None)); }