Example #1
0
        // 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));
        }
Example #2
0
 Task <List <KeyValuePair <string, long> > > IContainerAggregator.GetKeyValues()
 {
     return(Task.FromResult(containerLivenessCounter.GetKeyValues()));
 }