Beispiel #1
0
 public Task <IList <T> > AsList()
 {
     if (IsPaginated())
     {
         var enumerator = new PaginatedEnumerator <T>(this);
         return(enumerator.AsList());
     }
     else
     {
         return(AsListUnpaginated());
     }
 }
Beispiel #2
0
        public Task Each(Action <T> cb)
        {
            var enumerator = new PaginatedEnumerator <T>(this);

            return(enumerator.Each(cb));
        }