Beispiel #1
0
        private void OnNetworkReachabilityChanged(object sender, NetworkStatusEventArgs e)
        {
            if (!waitingForConnectivity)
            {
                return;
            }

            if (e.Status != NetworkStatus.NotReachable)
            {
                var options = OnConnectivityOptions;
                OnConnectivityOptions = null;
                SynchronizeAsync(options);
            }
        }
Beispiel #2
0
        private async void HandleNetworkChange(object sender, NetworkStatusEventArgs e)
        {

            if (!waitingForConnectivity)
            {
                return;
            }

            if (e.Status != NetworkStatus.NotReachable)
            {
                await SynchronizeAsync().ConfigureAwait(false);
            }
        }