示例#1
0
 /// <inheritdoc/>
 public Task <Maybe <IEnumerable <T> > > ExecuteAsync <T>(
     IWpDb db,
     IUnitOfWork w,
     GetPostsOptions opt,
     params IContentFilter[] filters
     )
     where T : IWithId <WpPostId> =>
 QueryPostsF.ExecuteAsync <T>(db, w, opt, filters);
示例#2
0
 /// <inheritdoc/>
 public Task <Maybe <IPagedList <T> > > ExecuteAsync <T>(
     IWpDb db,
     IUnitOfWork w,
     ulong page,
     GetPostsOptions opt,
     params IContentFilter[] filters
     )
     where T : IWithId <WpPostId> =>
 QueryPostsF.ExecuteAsync <T>(db, w, page, opt, filters);
示例#3
0
 /// <inheritdoc/>
 public async Task <Maybe <IPagedList <T> > > PostsAsync <T>(ulong page, Query.GetPostsOptions opt, params IContentFilter[] filters)
     where T : IWithId <WpPostId>
 {
     using var w = Db.UnitOfWork;
     return(await QueryPostsF.ExecuteAsync <T>(Db, w, page, opt, filters).ConfigureAwait(false));
 }