public async Task OnGetAsync([FromQuery] Filters filters) { var distincts = _httpStatusResultRepository.GetDistincts(filters); var stats = _httpStatusResultRepository.GetStatistics(filters); await Task.WhenAll(distincts, stats); Distincts = distincts.Result; Filters = filters; Stats = stats.Result; }
public async Task OnGetAsync([FromQuery] Filters filters) { filters.Period = filters.Period ?? 1m; filters.Frequency = filters.Frequency ?? Stopwatch.Frequency; var graphStatus = _graphStatsService.GetStatusCodes(filters); var distincts = _httpStatusResultRepository.GetDistincts(filters); await Task.WhenAll(graphStatus, distincts); GraphStatus = graphStatus.Result.AsList(); Distincts = distincts.Result; Filters = filters; }