Example #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);
        }
Example #2
0
 private void LoadRegistration(PackageRegistration registration)
 {
     registration.LoadPackage();
     _byPackage.Add(registration.Package, registration);
     registration.InitializePackage();
 }
Example #3
0
 public OptionPage(OptionPageRegistration registration, PackageRegistration package)
 {
     Registration = registration;
     Package = package;
 }