Exemplo n.º 1
0
 protected void InvokeNetworkConnectionChangedEvent()
 {
     if (_isStarted)
     {
         NetworkConnectionChanged?.Invoke(this, new NetworkConnectionEventArgs(IsInternetConnectionAvailable == true, ConnectionTypes));
     }
 }
Exemplo n.º 2
0
 protected void TryToUpdateInternetResult(bool newValue)
 {
     if (IsInternetConnectionAvailable != newValue)
     {
         IsInternetConnectionAvailable = newValue;
         NetworkConnectionChanged?.Invoke(this, new NetworkConnectionEventArgs(IsInternetConnectionAvailable == true, ConnectionTypes));
     }
 }