Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/17/09 14:34:13 (15 years ago)
Author:
kgrading
Message:

refactoring (#547)

Location:
trunk/sources/HeuristicLab.Hive.Client.Core/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/Core.cs

    r1589 r1602  
    205205
    206206        PluginManager.Manager.Initialize();
     207        //Todo: make a set & override the equals method
     208        List<byte[]> files = new List<byte[]>();
     209        foreach (CachedHivePluginInfo plugininfo in PluginCache.Instance.GetPlugins(e.Result.Job.PluginsNeeded))
     210          files.AddRange(plugininfo.PluginFiles);
    207211       
    208         AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.Job.Id.ToString(), sandboxed, typeof(HeuristicLab.Hive.Engine.HiveEngine));
     212        AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.Job.Id.ToString(), sandboxed, typeof(HeuristicLab.Hive.Engine.HiveEngine), files);
    209213        appDomain.UnhandledException += new UnhandledExceptionEventHandler(appDomain_UnhandledException);
    210214        lock (engines) {                   
  • trunk/sources/HeuristicLab.Hive.Client.Core/3.2/PluginCache.cs

    r1594 r1602  
    1010namespace HeuristicLab.Hive.Client.Core {
    1111  public class PluginCache {
     12
     13    private static PluginCache instance = null;
     14    public static PluginCache Instance {
     15      get {
     16        if (instance == null)
     17          instance = new PluginCache();
     18        return instance;
     19      }
     20    }
     21   
    1222    private List<CachedHivePluginInfo> pluginCache;
    1323   
     24
    1425    public PluginCache() {
    1526      pluginCache = new List<CachedHivePluginInfo>();
     
    2435      List<HivePluginInfo> missingPlugins = new List<HivePluginInfo>();
    2536      bool found = false;
     37     
     38      //Todo: Fix the whole equals thing here
    2639      foreach (HivePluginInfo info in requests) {
    2740        foreach (CachedHivePluginInfo cache in pluginCache) {
Note: See TracChangeset for help on using the changeset viewer.