Пример #1
0
        void StopListeners()
        {
            if (listener == null)
            {
                return;
            }

            listener.ReachabilityChanged -= OnConnectivityChanged;
            listener.Dispose();
            listener = null;
        }
Пример #2
0
 void StartListeners()
 {
     listener = new ReachabilityListener();
     listener.ReachabilityChanged += OnConnectivityChanged;
 }