/// <summary> /// Adds an external API key to the user. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='azureRegion'> /// Supported Azure regions for Cognitive Services endpoints. Possible values /// include: 'westus', 'westeurope' /// </param> /// <param name='externalKeyCreateObject'> /// External API key object. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task AddExternalApiKeyAsync(this IUser operations, AzureRegions azureRegion, ExternalKeyCreateObject externalKeyCreateObject = default(ExternalKeyCreateObject), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.AddExternalApiKeyWithHttpMessagesAsync(azureRegion, externalKeyCreateObject, null, cancellationToken).ConfigureAwait(false)).Dispose(); }