/// <summary> /// Obtains details of a cached recommendation. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceUri'> /// The fully qualified Azure Resource Manager identifier of the resource to /// which the recommendation applies. /// </param> /// <param name='recommendationId'> /// The recommendation ID. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ResourceRecommendationBase> GetAsync(this IRecommendationsOperations operations, string resourceUri, string recommendationId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceUri, recommendationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }