Пример #1
0
 void Preprocessing.ICredentialsCache.InvalidateCredentialsCache(Uri site, string authType)
 {
     lock (credentialCacheLock)
     {
         if (credentialCache == null)
         {
             credentialCache = new NetworkCredentialsStorage(credentialsCacheStorage, new Persistence.SystemDataProtection());
         }
         if (credentialCache.Remove(site))
         {
             credentialCache.StoreSecurely();
         }
     }
 }
Пример #2
0
 void Preprocessing.ICredentialsCache.InvalidateCredentialsCache(Uri site, string authType)
 {
     lock (credentialCacheLock)
     {
         if (credentialCache == null)
         {
             credentialCache = new NetworkCredentialsStorage(credentialsCacheStorage);
         }
         if (credentialCache.Remove(site))
         {
             credentialCache.StoreSecurely();
         }
     }
 }