void ITokenCacheInternal.ClearAdalCache()
        {
            IDictionary <AdalTokenCacheKey, AdalResultWrapper> dictionary = AdalCacheOperations.Deserialize(Logger, LegacyCachePersistence.LoadCache());

            dictionary.Clear();
            LegacyCachePersistence.WriteCache(AdalCacheOperations.Serialize(Logger, dictionary));
        }
예제 #2
0
 internal void DeserializeAdalV3NoLocks(byte[] adalV3State)
 {
     LegacyCachePersistence.WriteCache(adalV3State);
 }
예제 #3
0
 internal byte[] SerializeAdalV3NoLocks()
 {
     return(LegacyCachePersistence.LoadCache());
 }
 void ITokenCacheSerializer.DeserializeAdalV3(byte[] adalV3State)
 {
     LegacyCachePersistence.WriteCache(adalV3State);
 }
 byte[] ITokenCacheSerializer.SerializeAdalV3()
 {
     return(LegacyCachePersistence.LoadCache());
 }