/// <summary> /// The get authorization rule operation gets an authorization rule for /// a NotificationHub by name. /// </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 to get the authorization rule for. /// </param> /// <param name='notificationHubName'> /// Required. The notification hub name. /// </param> /// <param name='authorizationRuleName'> /// Required. The entity name to get the authorization rule for. /// </param> /// <returns> /// The response of the Get Namespace operation. /// </returns> public static Task <SharedAccessAuthorizationRuleGetResponse> GetAuthorizationRuleAsync(this INotificationHubOperations operations, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName) { return(operations.GetAuthorizationRuleAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, CancellationToken.None)); }