Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/28/10 11:47:55 (14 years ago)
Author:
gkronber
Message:

Added a formal parameter for the application-base directory name to CreateAndInitSandbox method in SandboxManager. #1297

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/3.3/Sandboxing/SandboxManager.cs

    r4920 r4970  
    5555
    5656    #region ISandboxManager Members
    57     public static AppDomain CreateAndInitSandbox(string name) {
     57    public static AppDomain CreateAndInitSandbox(string appDomainName, string applicationBase) {
    5858      PermissionSet pset;
    5959
     
    7979      AppDomainSetup setup = AppDomain.CurrentDomain.SetupInformation;
    8080      //setup.PrivateBinPath = pluginDir;
    81       setup.ApplicationBase = name;
     81      setup.ApplicationBase = applicationBase;
    8282      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()));
    8484      Type applicationManagerType = typeof(DefaultApplicationManager);
    8585      DefaultApplicationManager applicationManager =
    8686        (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);
    8888      pm.DiscoverAndCheckPlugins();
    8989      ApplicationDescription[] apps = pm.Applications.Cast<ApplicationDescription>().ToArray();
Note: See TracChangeset for help on using the changeset viewer.