Esempio n. 1
0
 public static bool Ping(string host, int port, out TimeSpan elapsed)
 {
     return(NetUtility.Ping(host, port, TimeSpan.MaxValue, out elapsed));
 }
Esempio n. 2
0
        public static bool Ping(string host, int port, TimeSpan timeout)
        {
            TimeSpan timeSpan;

            return(NetUtility.Ping(host, port, timeout, out timeSpan));
        }
Esempio n. 3
0
 public static bool Ping(string host, int port)
 {
     return(NetUtility.Ping(host, port, TimeSpan.MaxValue));
 }