static NetworkConnectionTracker()
 {
     Install();
     _isNetworkAvailable = NetworkUtils.IsNetworkAvailable(null, false);
 }
 private static void OnNetworkAvailabilityChanged(object sender, NetworkAvailabilityEventArgs e)
 {
     _isNetworkAvailable = NetworkUtils.IsNetworkAvailable(null, false);
 }
 private static void OnNetworkAddressChanged(object sender, EventArgs e)
 {
     _isNetworkAvailable = NetworkUtils.IsNetworkAvailable(null, true);
 }