Example #1
0
 public IEnumerable <IFeature> List()
 {
     return(Extensions.Synchronize(() => client.ListAllAsync())
            .AsContinuousCollection(link => Extensions.Synchronize(() => client.ListNextAsync(link)))
            .Select(inner => WrapModel(inner)));
 }
 /// <summary>
 /// Gets all the preview features that are available through AFEC for the
 /// subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <FeatureResult> ListAll(this IFeaturesOperations operations)
 {
     return(operations.ListAllAsync().GetAwaiter().GetResult());
 }