public async Task <IEnumerable <AdaptivRecon> > GetStats(IQueryServiceRepository <AdaptivRecon> repository) { var query = new ReconStatsQuery(); var handler = new AdaptivReconHandlerFactory(repository).Build(query); return(await handler.Get()); }
public IQueryHandler <ReconStatsQuery, Task <IEnumerable <AdaptivRecon> > > Build(ReconStatsQuery query) { return(new ReadQueryStatsHandler(_repository)); }