private void RaiseCompleted(APICompletedEventArgs e) { if (Completed != null) { Completed(this, e); } }
protected virtual void RaiseFailed(APICompletedEventArgs e) { if (Failed != null && !Disposed) { Failed(this, e); } }
void url_fetcher_Failed(object sender, APICompletedEventArgs e) { string[] title = tag.Split('|'); // RaiseSyncChange(new FileDownloadEvntArgs("Request Failed... "+title[1])); Message.SetMessage("Request Failed... " + title[1]); RaiseFailed(new FileDownloadEvntArgs(e.Response)); }
void primary_fetch_Failed(object sender, APICompletedEventArgs e) { if (!Disposed) { this.secondary_fetch.GetStreamURL(this.youtube_source); } }
void auth_NewTokenReceived(object sender, APICompletedEventArgs e) { System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() => { ToggleProgressBar("Done"); NavigationService.Navigate(new Uri("/Pages/Playlist.xaml", UriKind.Relative)); }); }
private void RaiseFailed(APICompletedEventArgs e) { ErrorLogging.Log(this.GetType().ToString(), e.Response, "ServiceProviderError", HttpUtility.UrlEncode(this.Youtube_Source_URL)); if (Failed != null) { Failed(this, e); } }
void url_fetcher_Completed(object sender, APICompletedEventArgs e) { BACKGROUND_REQUEST = base.GetBackTXRequest(e.Response, tag); BACKGROUND_REQUEST.TransferStatusChanged += new EventHandler <BackgroundTransferEventArgs>(current_request_TransferStatusChanged); RaiseReady(new FileDownloadEvntArgs(e.Response)); string[] title = BACKGROUND_REQUEST.Tag.Split('|'); if (SOURCES.Count > 0) { //RaiseSyncChange(new FileDownloadEvntArgs("Downloading... "+title[1])); Message.SetMessage("Downloading... " + title[1]); } else { //RaiseSyncChange(new FileDownloadEvntArgs("Completed")); Message.SetMessage("Completed"); } }
void tertiary_fetch_Failed(object sender, APICompletedEventArgs e) { RaiseFailed(e); }
void secondary_fetch_Failed(object sender, APICompletedEventArgs e) { if(!Disposed) this.tertiary_fetch.GetStreamURL(this.youtube_source); }
void secondary_fetch_Completed(object sender, APICompletedEventArgs e) { RaiseCompleted(e); }
private void RaiseFailed(APICompletedEventArgs e) { ErrorLogging.Log(this.GetType().ToString(), e.Response, "ServiceProviderError", HttpUtility.UrlEncode(this.Youtube_Source_URL)); if (Failed != null) Failed(this, e); }
protected virtual void RaiseNewToken(APICompletedEventArgs e) { if (NewTokenReceived != null) NewTokenReceived(this, e); }
void url_fetcher_Failed(object sender, APICompletedEventArgs e) { string[] title = tag.Split('|'); // RaiseSyncChange(new FileDownloadEvntArgs("Request Failed... "+title[1])); Message.SetMessage("Request Failed... "+title[1]); RaiseFailed(new FileDownloadEvntArgs(e.Response)); }
void url_fetcher_Completed(object sender, APICompletedEventArgs e) { BACKGROUND_REQUEST = base.GetBackTXRequest(e.Response,tag); BACKGROUND_REQUEST.TransferStatusChanged += new EventHandler<BackgroundTransferEventArgs>(current_request_TransferStatusChanged); RaiseReady(new FileDownloadEvntArgs(e.Response)); string[] title = BACKGROUND_REQUEST.Tag.Split('|'); if(SOURCES.Count > 0) //RaiseSyncChange(new FileDownloadEvntArgs("Downloading... "+title[1])); Message.SetMessage("Downloading... "+title[1]); else //RaiseSyncChange(new FileDownloadEvntArgs("Completed")); Message.SetMessage("Completed"); }
protected virtual void RaiseFailed(APICompletedEventArgs e) { if (Failed != null && !Disposed) Failed(this, e); }
void primary_fetch_Completed(object sender, APICompletedEventArgs e) { RaiseCompleted(e); }
private void RaiseCompleted(APICompletedEventArgs e) { if(Completed != null) Completed(this,e); }