- Timestamp:
- 08/03/10 17:20:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/sources/HeuristicLab.PluginInfrastructure/Sandboxing/SandboxManager.cs
r4050 r4140 94 94 DefaultApplicationManager applicationManager = 95 95 (DefaultApplicationManager)applicationDomain.CreateInstanceAndUnwrap(applicationManagerType.Assembly.FullName, applicationManagerType.FullName, true, BindingFlags.NonPublic | BindingFlags.Instance, null, null, null, null, null); 96 ApplicationDescription[] apps = ApplicationManager.Manager.Applications.Cast<ApplicationDescription>().ToArray();97 PluginDescription[] plugins = ApplicationManager.Manager.Plugins.Cast<PluginDescription>().ToArray();98 applicationManager.PrepareApplicationDomain(apps, plugins);99 if (files != null && files.Count() > 0)100 applicationManager.LoadAssemblies(files);96 PluginManager pm = new PluginManager(name); 97 pm.DiscoverAndCheckPlugins(); 98 ApplicationDescription[] apps = pm.Applications.Cast<ApplicationDescription>().ToArray(); 99 PluginDescription[] plugins = pm.Plugins.Cast<PluginDescription>().ToArray(); 100 applicationManager.PrepareApplicationDomain(apps, plugins); 101 101 return applicationDomain; 102 102 }
Note: See TracChangeset
for help on using the changeset viewer.