/// <summary> /// Initiates the recommendation generation or computation process for a /// subscription. This operation is asynchronous. The generated recommendations /// are stored in a cache in the Advisor service. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <RecommendationsGenerateHeaders> GenerateAsync(this IRecommendationsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GenerateWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Headers); } }