Changeset 1602 for trunk/sources/HeuristicLab.Hive.Client.Core
- Timestamp:
- 04/17/09 14:34:13 (15 years ago)
- 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 205 205 206 206 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); 207 211 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); 209 213 appDomain.UnhandledException += new UnhandledExceptionEventHandler(appDomain_UnhandledException); 210 214 lock (engines) { -
trunk/sources/HeuristicLab.Hive.Client.Core/3.2/PluginCache.cs
r1594 r1602 10 10 namespace HeuristicLab.Hive.Client.Core { 11 11 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 12 22 private List<CachedHivePluginInfo> pluginCache; 13 23 24 14 25 public PluginCache() { 15 26 pluginCache = new List<CachedHivePluginInfo>(); … … 24 35 List<HivePluginInfo> missingPlugins = new List<HivePluginInfo>(); 25 36 bool found = false; 37 38 //Todo: Fix the whole equals thing here 26 39 foreach (HivePluginInfo info in requests) { 27 40 foreach (CachedHivePluginInfo cache in pluginCache) {
Note: See TracChangeset
for help on using the changeset viewer.