/// <summary> /// Creates a new phraselist feature. /// </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='appId'> /// Format - guid. The application ID. /// </param> /// <param name='versionId'> /// The version ID of the task. /// </param> /// <param name='phraselistCreateObject'> /// A JSON object containing Name, comma-separated Phrases and the /// isExchangeable boolean. Default value for isExchangeable is /// true. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <double?> CreatePhraselistFeatureAsync(this IFeatures operations, AzureRegions azureRegion, string appId, string versionId, PhraselistCreateObject phraselistCreateObject = default(PhraselistCreateObject), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreatePhraselistFeatureWithHttpMessagesAsync(azureRegion, appId, versionId, phraselistCreateObject, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }