示例#1
0
        public async Task <IEnumerable <AdaptivRecon> > GetStats(IQueryServiceRepository <AdaptivRecon> repository)
        {
            var query   = new ReconStatsQuery();
            var handler = new AdaptivReconHandlerFactory(repository).Build(query);

            return(await handler.Get());
        }
示例#2
0
 public IQueryHandler <ReconStatsQuery, Task <IEnumerable <AdaptivRecon> > > Build(ReconStatsQuery query)
 {
     return(new ReadQueryStatsHandler(_repository));
 }