public JsonResult <PingResult> Get(string host, int bufferSize, int ttl, int timeout) { PingResult result = Pinger.Send(host, bufferSize, ttl, timeout); return(Json <PingResult>(result)); }
public JsonResult <PingResult> Get(string host) { PingResult result = Pinger.Send(host); return(Json <PingResult>(result)); }