public static Token GetToken(string tokenString) { Token returnToken; try { returnToken = SimpleSerializer.DeserializeFromXmlFile <Token>(GetFilename(tokenString)); } catch (Exception) { returnToken = null; } return(returnToken); }
private void SaveToken() { SimpleSerializer.SerializeToXmlFile(GetFilename(Guid), this); }