public bool RestoreSessionFromIsolatedStorage() { this.CurrentSession = FlickrSession.FromIsolatedStorage(); return (this.CurrentSession != null); }
private void ExtractFlickrSession(Uri address, XDocument result, object userState) { XAttribute attribute = result.Element("rsp").Attribute("stat"); if ((attribute == null) || (attribute.Value.ToUpper() != "OK")) { this.FireError(); } else { this.CurrentSession = FlickrSession.FromXml(result.Root); this.CurrentSession.SaveSessionToIsolatedStorage(); this.CurrentAuthenticationState = AuthenticationState.Authenticated; this.GetSetList(); } }