コード例 #1
0
ファイル: Util.cs プロジェクト: mjakeman/Hyena.Addins
 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);
         }
     }
 }
コード例 #2
0
 public AddinRegistryUpdater(AddinDatabase database, AddinScanResult scanResult) : base(database)
 {
     this.database   = database;
     this.scanResult = scanResult;
     ScanContext     = scanResult.ScanContext;
 }