예제 #1
0
 public static void UpdateOwaSetupVersionsCache()
 {
     using (RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(OwaRegistryKeys.OwaSetupInstallKey))
     {
         if (registryKey != null)
         {
             foreach (OwaRegistryKey owaRegistryKey in OwaRegistryKeys.keySetMap[OwaRegistryKeys.OwaSetupInstallKey])
             {
                 OwaRegistryKeys.keyValueCache[owaRegistryKey] = OwaRegistryKeys.ReadKeyValue(registryKey, owaRegistryKey);
             }
         }
     }
 }
예제 #2
0
 public static void Initialize()
 {
     ExTraceGlobals.CoreCallTracer.TraceDebug(0L, "OwaRegistryKeys.Initialize");
     foreach (string text in OwaRegistryKeys.keySetMap.Keys)
     {
         using (RegistryKey registryKey = Registry.LocalMachine.OpenSubKey(text))
         {
             if (registryKey != null)
             {
                 foreach (OwaRegistryKey owaRegistryKey in OwaRegistryKeys.keySetMap[text])
                 {
                     OwaRegistryKeys.keyValueCache[owaRegistryKey] = OwaRegistryKeys.ReadKeyValue(registryKey, owaRegistryKey);
                 }
             }
         }
     }
 }