public static async Task <IPagedCollection <IFluentResourceT> > LoadPage( Func <CancellationToken, Task <IEnumerable <InnerResourceT> > > listInnerAsync, Func <InnerResourceT, IFluentResourceT> wrapModel, CancellationToken cancellationToken) { return(await LoadPage(async (cancellation) => Extensions.ConvertToPage(await listInnerAsync(cancellation)), async (nextLink, cancellation) => await Task.FromResult <IPage <InnerResourceT> >(null), wrapModel, false, cancellationToken)); }
protected static IPage <InnerResourceT> ConvertToPage(IEnumerable <InnerResourceT> list) { return(Extensions.ConvertToPage(list)); }