Esempio n. 1
0
 private static void InitializeConfigInfo()
 {
   if (CryptoConfig.machineNameHT != null)
     return;
   lock (CryptoConfig.InternalSyncObject)
   {
     if (CryptoConfig.machineNameHT != null)
       return;
     ConfigNode local_2 = CryptoConfig.OpenCryptoConfig();
     if (local_2 != null)
     {
       foreach (ConfigNode item_0 in local_2.Children)
       {
         if (CryptoConfig.machineNameHT != null)
         {
           if (CryptoConfig.machineOidHT != null)
             break;
         }
         if (CryptoConfig.machineNameHT == null && string.Compare(item_0.Name, "cryptoNameMapping", StringComparison.Ordinal) == 0)
           CryptoConfig.machineNameHT = CryptoConfig.InitializeNameMappings(item_0);
         else if (CryptoConfig.machineOidHT == null && string.Compare(item_0.Name, "oidMap", StringComparison.Ordinal) == 0)
           CryptoConfig.machineOidHT = CryptoConfig.InitializeOidMappings(item_0);
       }
     }
     if (CryptoConfig.machineNameHT == null)
       CryptoConfig.machineNameHT = new Dictionary<string, string>();
     if (CryptoConfig.machineOidHT != null)
       return;
     CryptoConfig.machineOidHT = new Dictionary<string, string>();
   }
 }