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