/// <summary> /// Get recommendations using the requested model /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='modelId'> /// The model id to use when scoring /// </param> /// <param name='itemId'> /// Item id to get recommendations for /// </param> /// <param name='recommendationCount'> /// The number of requested recommendations /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async System.Threading.Tasks.Task <System.Collections.Generic.IList <RecommendationResult> > GetItemRecommendationsAsync(this IModels operations, System.Guid modelId, string itemId, int?recommendationCount = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetItemRecommendationsWithHttpMessagesAsync(modelId, itemId, recommendationCount, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }