Ejemplo n.º 1
0
 public async Task<ActionResult> QueryMachines(QueryModel model) {
     Stopwatch watch = new Stopwatch();
     watch.Start();
     var result = this.Json(new { machines = await CommsService.Query(model.Machines, true) });
     watch.Stop();
     LogFacade.Instance.LogDebug("QueryMachines executed in " + watch.ElapsedMilliseconds + " ms");
     return result;
 }
Ejemplo n.º 2
0
 public async Task<ActionResult> ContactableNeighbours(QueryModel model) {
     return this.Json(new { machines = await CommsService.Ping(model.Machines, model.Timeout) });
 }