예제 #1
0
 public Task <IReadOnlyList <IssueViews.IssueView> > Handle(GetIssues message, CancellationToken cancellationToken)
 {
     return(repository
            .Query()
            .ProjectTo <IssueViews.IssueView>(configurationProvider)
            .ToListAsync());
 }
예제 #2
0
        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());
        }
예제 #3
0
 public Task <IReadOnlyList <IssueView> > Handle(GetIssues message, CancellationToken cancellationToken)
 {
     return(repository
            .Query()
            .ToListAsync(cancellationToken));
 }
예제 #4
0
 public Task <IQueryable <TModel> > Get()
 => Task.Run(() => _repo.Query());