Пример #1
0
 public Task <bool> IsReachable(string host, TimeSpan timeout)
 {
     return(Task <bool> .Run(() => Reachability.IsHostReachable(host)));
 }
Пример #2
0
 public Task <bool> IsReachableByWifi(string host, TimeSpan timeout)
 {
     return(Task <bool> .Run(() => Reachability.RemoteHostStatus(host) == NetworkStatus.ReachableViaWiFiNetwork));
 }
Пример #3
0
        public Xamarin.Forms.Labs.Services.NetworkStatus InternetConnectionStatus()
        {
            var status = Reachability.InternetConnectionStatus();

            return((NetworkStatus)Enum.Parse(typeof(NetworkStatus), status.ToString()));
        }
Пример #4
0
 public NetworkStatus InternetConnectionStatus()
 {
     return(Reachability.InternetConnectionStatus());
 }