Пример #1
0
 private static void AddChallenge(DigestChallenge challenge, string ha1)
 {
     lock (Challengecache)
     {
         if (!Challengecache.ContainsKey(ha1))
             Challengecache.Add(ha1, challenge);
         else
             Challengecache[ha1] = challenge;
     }
 }
Пример #2
0
 private static void AddChallenge(DigestChallenge challenge, string ha1)
 {
     lock (Challengecache)
     {
         Challengecache.Add(ha1, challenge);
     }
 }