Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

How to check msTimeout #128

Closed
kore44110 opened this issue Dec 6, 2017 · 0 comments
Closed

How to check msTimeout #128

kore44110 opened this issue Dec 6, 2017 · 0 comments

Comments

@kore44110
Copy link

kore44110 commented Dec 6, 2017

I need to check if timeout over more than 5000ms
some case when wifi/internet connection is already connected but wifi/internet isn't running
how can I check these case?

I try to check
var reachable = await connectivity.IsRemoteReachable("google.com", 80, 5000);
if(reachable){
// in these case if device can ping to google.com
// it returns true quickly it's not waiting for 5000 ms
// I need to delay 5000ms before return result status
}else{
// in these case if device can ping to google.com
// it returns false quickly it's not waiting for 5000 ms
}

I'm using Xam.Plugin.Connectivity 3.0.3
Xamarin.Android
VS 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant