Beispiel #1
0
 public static void AddDependencies(AddinDescription desc, AddinScanResult scanResult)
 {
     // Not implemented in AddinScanResult to avoid making AddinDescription remotable
     foreach (ModuleDescription mod in desc.AllModules)
     {
         foreach (Dependency dep in mod.Dependencies)
         {
             AddinDependency adep = dep as AddinDependency;
             if (adep == null)
             {
                 continue;
             }
             string depid = Addin.GetFullId(desc.Namespace, adep.AddinId, adep.Version);
             scanResult.AddAddinToUpdateRelations(depid);
         }
     }
 }
 public AddinRegistryUpdater(AddinDatabase database, AddinScanResult scanResult) : base(database)
 {
     this.database   = database;
     this.scanResult = scanResult;
     ScanContext     = scanResult.ScanContext;
 }