/// <summary> /// Get all recommendations for an app. /// </summary> /// <remarks> /// Get all recommendations for an app. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='siteName'> /// Name of the app. /// </param> /// <param name='featured'> /// Specify <code>true</code> to return only the most critical /// recommendations. The default is <code>false</code>, which /// returns all recommendations. /// </param> /// <param name='filter'> /// Return only channels specified in the filter. Filter is specified by using /// OData syntax. Example: $filter=channels eq 'Api' or channel eq /// 'Notification' /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <RecommendationInner> > ListRecommendedRulesForWebAppAsync(this IRecommendationsOperations operations, string resourceGroupName, string siteName, bool?featured = default(bool?), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListRecommendedRulesForWebAppWithHttpMessagesAsync(resourceGroupName, siteName, featured, filter, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }