Changeset 1990
- Timestamp:
- 06/02/09 14:14:47 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/3.2/Core.cs
r1959 r1990 244 244 files.AddRange(plugininfo.PluginFiles); 245 245 246 AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.Job.Id.ToString(), sandboxed, null, files); 246 AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.Job.Id.ToString(), sandboxed, null, files); 247 247 appDomain.UnhandledException += new UnhandledExceptionEventHandler(appDomain_UnhandledException); 248 248 lock (engines) { … … 265 265 currentlyFetching = false; 266 266 } 267 268 267 269 268 void wcfService_StoreFinishedJobResultCompleted(object sender, StoreFinishedJobResultCompletedEventArgs e) { -
trunk/sources/HeuristicLab.Hive.Client.ExecutionEngine/3.2/Executor.cs
r1936 r1990 53 53 public void Start(byte[] serializedJob) { 54 54 CreationTime = DateTime.Now; 55 56 55 Job = (IJob)PersistenceManager.RestoreFromGZip(serializedJob); 57 56 //debug -
trunk/sources/HeuristicLab.Hive.Engine/3.2/HiveEngine.cs
r1925 r1990 172 172 public void Abort() { 173 173 IExecutionEngineFacade executionEngineFacade = ServiceLocator.CreateExecutionEngineFacade(HiveServerUrl); 174 175 //This are just Stubs on the server right now. There won't be any effect right now...176 174 executionEngineFacade.AbortJob(jobId); 177 175 OnFinished(); -
trunk/sources/HeuristicLab.PluginInfrastructure/PluginManager.cs
r1936 r1990 229 229 230 230 if (assemblyFiles != null && assemblyFiles.Count > 0) 231 remoteRunner.Load Plugins(assemblyFiles);231 remoteRunner.LoadAssemblies(assemblyFiles); 232 232 233 233 //if (depPlugins != null && depPlugins.Count > 0) { -
trunk/sources/HeuristicLab.PluginInfrastructure/Runner.cs
r1936 r1990 30 30 public class Runner : MarshalByRefObject { 31 31 32 private Dictionary<string, Assembly> loadedAssemblies; 33 34 public Runner() { 35 loadedAssemblies = new Dictionary<string, Assembly>(); 36 AppDomain.CurrentDomain.AssemblyResolve += (sender, args) => { 37 if(loadedAssemblies.ContainsKey(args.Name)) { 38 return loadedAssemblies[args.Name]; 39 } 40 return null; 41 }; 42 } 43 32 44 public void LoadPlugins(ICollection<PluginInfo> plugins) { 33 45 //FileIOPermission fileperm = new FileIOPermission(FileIOPermissionAccess.AllAccess, @"C:\Program Files\HeuristicLab 3.0\plugins\"); … … 43 55 } 44 56 /// <summary> 45 /// Loads plugins from a byte array57 /// Loads assemblies from a byte array 46 58 /// </summary> 47 /// <param name="plugins">bytearray of all plugins that should be loaded</param> 48 public void LoadPlugins(ICollection<byte[]> plugins) { 49 foreach (byte[] plugin in plugins) { 50 Assembly.Load(plugin); 59 /// <param name="plugins">bytearray of all assemblies that should be loaded</param> 60 public void LoadAssemblies(ICollection<byte[]> assemblies) { 61 foreach (byte[] asm in assemblies) { 62 Assembly loadedAsm = Assembly.Load(asm); 63 RegisterLoadedAssembly(loadedAsm); 51 64 } 65 } 66 67 private void RegisterLoadedAssembly(Assembly asm) { 68 loadedAssemblies.Add(asm.FullName, asm); 69 loadedAssemblies.Add(asm.GetName().Name, asm); // add short name 52 70 } 53 71
Note: See TracChangeset
for help on using the changeset viewer.