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