c# - Looking for a recommendation to use WebService in communication -


i have pc connect webservice on server.

what best recommendation use , check if have connection ?

if there isn't connection:

  1. to make loop 5 times , check again ?

  2. or make longer time out connection ?

  3. or send messagebox "try again" ?

what best thing ?

thanks in advance

if we're talking winforms applications, i'll try dns lookup public address, discrete button manual retries , thread.sleep automatic checks.

if dns lookup works, it's time try web service call.

edit: seems possible p/invoke call check internet connection, described in check internet connection c#


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -