public static GetProxy ( bool interactive ) : WebProxy | ||
interactive | bool | |
return | WebProxy |
private void CreateFlickrObject() { f = new Flickr(Properties.Settings.Default.FlickrApiKey, Properties.Settings.Default.FlickrShared); OAuthAccessToken oauth = Properties.Settings.Default.OAuthToken; f.OAuthAccessToken = oauth.Token; f.OAuthAccessTokenSecret = oauth.TokenSecret; f.Proxy = FlickrSync.GetProxy(true); f.HttpTimeout = 240000; f.OnUploadProgress += new EventHandler <FlickrNet.UploadProgressEventArgs>(Flickr_OnUploadProgress); sets = f.PhotosetsGetList(); if (sets == null) { sets = new PhotosetCollection(); } string user = User(); //force access to check connection }
public RemoteInfo() { try { f = new Flickr(Properties.Settings.Default.FlickrApiKey, Properties.Settings.Default.FlickrShared, Properties.Settings.Default.FlickrToken); f.Proxy = FlickrSync.GetProxy(true); f.OnUploadProgress += new Flickr.UploadProgressHandler(Flickr_OnUploadProgress); sets = f.PhotosetsGetList().PhotosetCollection; if (sets == null) { sets = new Photoset[0]; } string user = User(); //force access to check connection } catch (Exception ex) { FlickrSync.Error("Error connecting to flickr", ex, FlickrSync.ErrorType.Connect); } }