public Task <bool> IsPortReachable(string host, int port = 80, int msTimeout = 5000) { return(new Task <bool>(() => Reachability.IsHostReachable(host))); }
public override Task <bool> GetHostReachableAsync(string host, CancellationToken token = default(CancellationToken)) { return(Task.Run(() => Reachability.IsHostReachable(host), token)); }