public static void LoadToken() { string fileName = GetTokenFileName(); if (File.Exists(fileName)) { fCurrent = new AccessToken(); fCurrent.ReadFromFile("Json", null, fileName, ReadSettings.Default, QName.Toolkit); } }
private static void SaveToken(AccessToken fCurrent) { string fileName = GetTokenFileName(); FileUtil.VerifySaveFile(fileName, fCurrent.WriteJson(), Encoding.UTF8); }