Exemplo n.º 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();
         }
     }
 }
Exemplo n.º 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();
         }
     }
 }