public async static Task <SlidingCollectionWrapper <T> > ToSlidingCollectionWrapperAsync <T>(this IQueryable <T> source, SlidingParams slidingParams)
            where T : class
        {
            var result = await source.ToSlidingCollectionAsync(slidingParams);

            return(new SlidingCollectionWrapper <T>(result));
        }
 public static SlidingCollectionWrapper <T> ToSlidingCollectionWrapper <T>(this IQueryable <T> source, SlidingParams slidingParams)
     where T : class
 {
     return(new SlidingCollectionWrapper <T>(source.ToSlidingCollection(slidingParams)));
 }
 public static SlidingCollection <T> ToSlidingCollection <T>(this IQueryable <T> source, SlidingParams slidingParams)
     where T : class
 {
     return(new SlidingCollection <T>(source, slidingParams).Initialize());
 }
Beispiel #4
0
 public SlidingCollection(IQueryable <T> collection, SlidingParams slidingParams)
 {
     _collection    = collection ?? throw new ArgumentNullException(nameof(collection));
     _slidingParams = slidingParams ?? SlidingParams.Default;
 }