/// <summary> /// Gets the Primary and Secondary ConnectionStrings to the namespace /// (see /// http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.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. /// </param> /// <param name='namespaceName'> /// Required. The namespace name. /// </param> /// <param name='authorizationRuleName'> /// Required. The connection string of the namespace for the specified /// authorizationRule. /// </param> /// <returns> /// Namespace/NotificationHub Connection String /// </returns> public static Task <ResourceListKeys> ListKeysAsync(this INamespaceOperations operations, string resourceGroupName, string namespaceName, string authorizationRuleName) { return(operations.ListKeysAsync(resourceGroupName, namespaceName, authorizationRuleName, CancellationToken.None)); }