Exemplo n.º 1
0
 /// <summary>
 /// Regenerates the ACS and SAS connection strings for the Event Hub.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group within the azure subscription.
 /// </param>
 /// <param name='namespaceName'>
 /// The Namespace name
 /// </param>
 /// <param name='eventHubName'>
 /// The Event Hub name
 /// </param>
 /// <param name='authorizationRuleName'>
 /// The authorization rule name.
 /// </param>
 /// <param name='keyType'>
 /// The access key to regenerate. Possible values include: 'PrimaryKey',
 /// 'SecondaryKey'
 /// </param>
 /// <param name='key'>
 /// Optional, if the key value provided, is set for KeyType or autogenerated
 /// Key value set for keyType
 /// </param>
 public static AccessKeys RegenerateKeys(this IEventHubsOperations operations, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName, KeyType keyType, string key = default(string))
 {
     return(operations.RegenerateKeysAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName, keyType, key).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Regenerates the ACS and SAS connection strings for the Event Hub.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group within the azure subscription.
 /// </param>
 /// <param name='namespaceName'>
 /// The Namespace name
 /// </param>
 /// <param name='eventHubName'>
 /// The Event Hub name
 /// </param>
 /// <param name='authorizationRuleName'>
 /// The authorization rule name.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to regenerate the AuthorizationRule Keys
 /// (PrimaryKey/SecondaryKey).
 /// </param>
 public static AccessKeys RegenerateKeys(this IEventHubsOperations operations, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName, RegenerateAccessKeyParameters parameters)
 {
     return(operations.RegenerateKeysAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName, parameters).GetAwaiter().GetResult());
 }