public void SaveModulesData() { foreach (var module in _registeredModules) { XElement data = module.GetData(); string moduleName = module.GetName(); _persistentService.Save(moduleName, data); // TODO: Create corresponding method in PersistentService class } }
private void PersistTokens() { if (persistentService != null) { persistentService.SetValue(settings.AnonymousTokenPersistKey, m_State.anonymousToken); if (settings.PersistRefreshToken) { persistentService.SetValue(settings.RefreshTokenPersistKey, m_State.refreshToken); } persistentService.Save(); } }