예제 #1
0
파일: Network.cs 프로젝트: yomtej/Tiro_App
 /// <summary>
 /// Determines whether the specified host is reachable.
 /// </summary>
 /// <param name="host">The host.</param>
 /// <param name="timeout">The timeout.</param>
 public Task <bool> IsReachable(string host, TimeSpan timeout)
 {
     return(Task.Run(() => Reachability.IsHostReachable(host)));
 }
예제 #2
0
파일: Network.cs 프로젝트: yomtej/Tiro_App
 /// <summary>
 /// Determines whether [is reachable by wifi] [the specified host].
 /// </summary>
 /// <param name="host">The host.</param>
 /// <param name="timeout">The timeout.</param>
 public Task <bool> IsReachableByWifi(string host, TimeSpan timeout)
 {
     return(Task.Run(() => Reachability.RemoteHostStatus(host) == NetworkStatus.ReachableViaWiFiNetwork));
 }
예제 #3
0
파일: Network.cs 프로젝트: yomtej/Tiro_App
 /// <summary>
 /// Internets the connection status.
 /// </summary>
 /// <returns>NetworkStatus.</returns>
 public NetworkStatus InternetConnectionStatus()
 {
     return(Reachability.InternetConnectionStatus());
 }