예제 #1
0
        private static void SignalAvailabilityChange(System.Object sender)
        {
            var change = NetworkStatus.IsNetworkAvailable();

            if (change == NetworkStatus._isAvailable)
            {
                return;
            }

            NetworkStatus._isAvailable = change;

            if (NetworkStatus._handler != null)
            {
                NetworkStatus._handler(sender, new NetworkStatusChangedArgs(NetworkStatus._isAvailable));
            }
        }