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:
to make loop 5 times , check again ?
or make longer time out connection ?
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
Post a Comment