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; }
public async Task<ActionResult> ContactableNeighbours(QueryModel model) { return this.Json(new { machines = await CommsService.Ping(model.Machines, model.Timeout) }); }