/// <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='hostingEnvironmentName'>
 /// Name of the app.
 /// </param>
 /// <param name='featured'>
 /// Specify &lt;code&gt;true&lt;/code&gt; to return only the most critical
 /// recommendations. The default is &lt;code&gt;false&lt;/code&gt;, which
 /// returns all recommendations.
 /// </param>
 /// <param name='filter'>
 /// Return only channels specified in the filter. Filter is specified by using
 /// OData syntax. Example: $filter=channel eq 'Api' or channel eq
 /// 'Notification'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <RecommendationInner> > ListRecommendedRulesForHostingEnvironmentAsync(this IRecommendationsOperations operations, string resourceGroupName, string hostingEnvironmentName, bool?featured = default(bool?), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListRecommendedRulesForHostingEnvironmentWithHttpMessagesAsync(resourceGroupName, hostingEnvironmentName, featured, filter, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }