示例#1
0
        public JsonResult <PingResult> Get(string host, int bufferSize, int ttl, int timeout)
        {
            PingResult result = Pinger.Send(host, bufferSize, ttl, timeout);

            return(Json <PingResult>(result));
        }
示例#2
0
        public JsonResult <PingResult> Get(string host)
        {
            PingResult result = Pinger.Send(host);

            return(Json <PingResult>(result));
        }