// GET api/values/getAllKeys public JsonResult Index() { var localResults = counter.GetKeyValues(); var globalResults = proxy.GetKeyValues().GetAwaiter().GetResult(); var combinedResults = new ReportedResults(); combinedResults.GlobalReports = globalResults; combinedResults.LocalReports = localResults; return(Json(combinedResults)); }
Task <List <KeyValuePair <string, long> > > IContainerAggregator.GetKeyValues() { return(Task.FromResult(containerLivenessCounter.GetKeyValues())); }