Exemplo n.º 1
0
 private void ReadInstancesFromRegistry(RegistrationKey instancesRegistryKey)
 {
     using (var hklm = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, instancesRegistryKey.KeyBitness))
         using (var instancesKey = hklm.OpenSubKey(instancesRegistryKey.Key))
         {
             if (null != instancesKey && 0 != instancesKey.ValueCount)
             {
                 ReadInstancesFromRegistryKey(instancesKey);
             }
         }
 }
Exemplo n.º 2
0
 private InstanceManager(RegistrationKey instanceRegistryKey, string instancePool)
 {
     ReadInstancesFromRegistry(instanceRegistryKey);
     ExtractInstancePool(instancePool);
 }
Exemplo n.º 3
0
 internal static InstanceManager CreateManager(RegistrationKey instanceRegistryKey, string instancePool)
 {
     return(ClassInstance ?? (ClassInstance = new InstanceManager(instanceRegistryKey, instancePool)));
 }