public Task <IReadOnlyList <IssueViews.IssueView> > Handle(GetIssues message, CancellationToken cancellationToken) { return(repository .Query() .ProjectTo <IssueViews.IssueView>(configurationProvider) .ToListAsync()); }
public async Task <IReadOnlyList <IssueViews.IssueView> > Handle(GetIssues message, CancellationToken cancellationToken) { var result = await repository .Query() .ToListAsync(token: cancellationToken); return(result.AsQueryable() .ProjectTo <IssueViews.IssueView>(configurationProvider) .ToList()); }
public Task <IReadOnlyList <IssueView> > Handle(GetIssues message, CancellationToken cancellationToken) { return(repository .Query() .ToListAsync(cancellationToken)); }
public Task <IQueryable <TModel> > Get() => Task.Run(() => _repo.Query());