Exemplo n.º 1
0
        private void AddPackageToLoadOrder(PackageRegistration package)
        {
            if (_seen[package])
                return;

            _seen[package] = true;

            foreach (var dependency in package.Metadata.Dependencies)
            {
                PackageRegistration dependentPackage;

                if (_packagesById.TryGetValue(dependency.Id, out dependentPackage))
                    AddPackageToLoadOrder(dependentPackage);
            }

            _result.Add(package);
        }
Exemplo n.º 2
0
 private void LoadRegistration(PackageRegistration registration)
 {
     registration.LoadPackage();
     _byPackage.Add(registration.Package, registration);
     registration.InitializePackage();
 }
Exemplo n.º 3
0
 public OptionPage(OptionPageRegistration registration, PackageRegistration package)
 {
     Registration = registration;
     Package = package;
 }