public void Dispose() { if (m_log != null) { m_log.Dispose(); m_log = null; } if (m_key != null) { m_key.Dispose(); m_key = null; } }
private static void ProcessPackages(string fullPath, bool register) { // Try to get the registry root. string registryRoot = GetRegistryRoot(fullPath); if (registryRoot == null) { return; } // Create the context to process the packages. using (VsRegistryKey key = new VsRegistryKey(registryRoot)) { using (VsRegistrationContext context = new VsRegistrationContext(key, RegistrationMethod.CodeBase)) { ProcessPackages(fullPath, register, context); } } }
public VsRegistrationContext(VsRegistryKey key, RegistrationMethod method) { m_key = key; m_method = method; }