- Timestamp:
- 11/23/10 18:14:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Sandboxing/SandboxManager.cs
r4482 r4912 55 55 56 56 #region ISandboxManager Members 57 58 57 public static AppDomain CreateAndInitSandbox(string name) { 59 return CreateAndInitSandbox(name, Enumerable.Empty<byte[]>());60 }61 62 63 public static AppDomain CreateAndInitSandbox(string name, IEnumerable<byte[]> files) {64 58 PermissionSet pset; 65 59 … … 92 86 PluginManager pm = new PluginManager(name); 93 87 pm.DiscoverAndCheckPlugins(); 94 ApplicationDescription[] apps = ApplicationManager.Manager.Applications.Cast<ApplicationDescription>().ToArray();95 PluginDescription[] plugins = ApplicationManager.Manager.Plugins.Cast<PluginDescription>().ToArray();88 ApplicationDescription[] apps = pm.Applications.Cast<ApplicationDescription>().ToArray(); 89 PluginDescription[] plugins = pm.Plugins.Cast<PluginDescription>().ToArray(); 96 90 applicationManager.PrepareApplicationDomain(apps, plugins); 97 //if (files != null && files.Count() > 0)98 //applicationManager.LoadAssemblies(files);99 91 return applicationDomain; 100 92 } 101 102 93 #endregion 103 94 }
Note: See TracChangeset
for help on using the changeset viewer.