Пример #1
0
        public static Token GetToken(string tokenString)
        {
            Token returnToken;

            try
            {
                returnToken = SimpleSerializer.DeserializeFromXmlFile <Token>(GetFilename(tokenString));
            }
            catch (Exception)
            {
                returnToken = null;
            }
            return(returnToken);
        }
Пример #2
0
 private void SaveToken()
 {
     SimpleSerializer.SerializeToXmlFile(GetFilename(Guid), this);
 }