Exemplo n.º 1
0
		public bool RestoreSessionFromIsolatedStorage()
		{
			this.CurrentSession = FlickrSession.FromIsolatedStorage();
			return (this.CurrentSession != null);
		}
Exemplo n.º 2
0
		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();
			}
		}