Exemple #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);
Exemple #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);
Exemple #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));
 }