/// <summary> /// Checks internet status and other concurrent tasks /// </summary> protected virtual bool ShouldStart() { // internet connection if (!IOS_Methods.IsOnline()) { if (ShowNotifications) { // TODO: Show 'not online' message } return(false); } // concurrent downloads if (!ConcurrentDownload /* && TODO: check public bool DownloadIsOnTheWay*/) { if (ShowNotifications) { // TODO: Show 'Is Downloading' message } return(false); } return(true); }
protected override void DoInBackground(object sender, DoWorkEventArgs e) { IsTaskSuccessful = !string.IsNullOrWhiteSpace(_url) && IOS_Methods.IsUrlReachable(_url); }