Changeset 4970 for trunk/sources/HeuristicLab.PluginInfrastructure
- Timestamp:
- 11/28/10 11:47:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Sandboxing/SandboxManager.cs
r4920 r4970 55 55 56 56 #region ISandboxManager Members 57 public static AppDomain CreateAndInitSandbox(string name) {57 public static AppDomain CreateAndInitSandbox(string appDomainName, string applicationBase) { 58 58 PermissionSet pset; 59 59 … … 79 79 AppDomainSetup setup = AppDomain.CurrentDomain.SetupInformation; 80 80 //setup.PrivateBinPath = pluginDir; 81 setup.ApplicationBase = name;81 setup.ApplicationBase = applicationBase; 82 82 setup.ConfigurationFile = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile; 83 AppDomain applicationDomain = AppDomain.CreateDomain( name, AppDomain.CurrentDomain.Evidence, setup, pset, CreateStrongName(Assembly.GetExecutingAssembly()));83 AppDomain applicationDomain = AppDomain.CreateDomain(appDomainName, AppDomain.CurrentDomain.Evidence, setup, pset, CreateStrongName(Assembly.GetExecutingAssembly())); 84 84 Type applicationManagerType = typeof(DefaultApplicationManager); 85 85 DefaultApplicationManager applicationManager = 86 86 (DefaultApplicationManager)applicationDomain.CreateInstanceAndUnwrap(applicationManagerType.Assembly.FullName, applicationManagerType.FullName, true, BindingFlags.NonPublic | BindingFlags.Instance, null, null, null, null, null); 87 PluginManager pm = new PluginManager( name);87 PluginManager pm = new PluginManager(appDomainName); 88 88 pm.DiscoverAndCheckPlugins(); 89 89 ApplicationDescription[] apps = pm.Applications.Cast<ApplicationDescription>().ToArray();
Note: See TracChangeset
for help on using the changeset viewer.