Пример #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));
        }