コード例 #1
0
 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));
 }
コード例 #2
0
 protected static IPage <InnerResourceT> ConvertToPage(IEnumerable <InnerResourceT> list)
 {
     return(Extensions.ConvertToPage(list));
 }