/// <summary> /// Regenerates the Primary/Secondary Keys to the NotificationHub Authorization /// Rule /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='namespaceName'> /// The namespace name. /// </param> /// <param name='notificationHubName'> /// The notification hub name. /// </param> /// <param name='authorizationRuleName'> /// The connection string of the NotificationHub for the specified /// authorizationRule. /// </param> /// <param name='parameters'> /// Parameters supplied to regenerate the NotificationHub Authorization Rule /// Key. /// </param> public static ResourceListKeys RegenerateKeys(this INotificationHubsOperations operations, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName, PolicykeyResource parameters) { return(operations.RegenerateKeysAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, parameters).GetAwaiter().GetResult()); }