Esempio n. 1
0
        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
            }
        }
Esempio n. 2
0
 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();
     }
 }