예제 #1
0
 /// <summary>
 /// Gets the Primary and Secondary ConnectionStrings to the
 /// NotificationHub   (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.INotificationHubOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='namespaceName'>
 /// Required. The namespace name.
 /// </param>
 /// <param name='notificationHubName'>
 /// Required. The notification hub name.
 /// </param>
 /// <param name='authorizationRuleName'>
 /// Required. The connection string of the NotificationHub for the
 /// specified authorizationRule.
 /// </param>
 /// <returns>
 /// Namespace/NotificationHub Connection String
 /// </returns>
 public static Task <ResourceListKeys> ListKeysAsync(this INotificationHubOperations operations, string resourceGroupName, string namespaceName, string notificationHubName, string authorizationRuleName)
 {
     return(operations.ListKeysAsync(resourceGroupName, namespaceName, notificationHubName, authorizationRuleName, CancellationToken.None));
 }