Пример #1
0
 static NetworkConnectionTracker()
 {
     Install();
     _isNetworkAvailable = NetworkUtils.IsNetworkAvailable(null, true);
 }
Пример #2
0
 private static void OnNetworkAvailabilityChanged(object sender, NetworkAvailabilityEventArgs e)
 {
     _isNetworkAvailable = NetworkUtils.IsNetworkAvailable(null, true);
 }
 private static void OnNetworkAddressChanged(object sender, EventArgs e)
 {
     _isNetworkAvailable = NetworkUtils.IsNetworkAvailable(null, false);
 }