GetCacheValue() static private method

static private GetCacheValue ( IPropertySet containerValues ) : byte[]
containerValues IPropertySet
return byte[]
 private static void DefaultTokenCache_BeforeAccess(TokenCacheNotificationArgs args)
 {
     try
     {
         var localSettings = ApplicationData.Current.LocalSettings;
         localSettings.CreateContainer(LocalSettingsContainerName, ApplicationDataCreateDisposition.Always);
         byte[] state = LocalSettingsHelper.GetCacheValue(localSettings.Containers[LocalSettingsContainerName].Values);
         if (state != null)
         {
             DefaultShared.Deserialize(state);
         }
     }
     catch (Exception ex)
     {
         Logger.Warning(null, "Failed to load cache: " + ex);
         // Ignore as the cache seems to be corrupt
     }
 }