Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/06/10 15:30:39 (14 years ago)
Author:
cneumuel
Message:

#1320 added possibility to create sandbox with custom configuration file

File:
1 edited

Legend:

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

    r4971 r5035  
    5555
    5656    #region ISandboxManager Members
    57     public static AppDomain CreateAndInitSandbox(string appDomainName, string applicationBase) {
     57    public static AppDomain CreateAndInitSandbox(string appDomainName, string applicationBase, string configFilePath) {
    5858      PermissionSet pset;
    5959
     
    7878
    7979      AppDomainSetup setup = AppDomain.CurrentDomain.SetupInformation;
    80       //setup.PrivateBinPath = pluginDir;
     80      setup.PrivateBinPath = applicationBase;
    8181      setup.ApplicationBase = applicationBase;
    82       setup.ConfigurationFile = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile;
     82      setup.ConfigurationFile = configFilePath;
     83
    8384      AppDomain applicationDomain = AppDomain.CreateDomain(appDomainName, AppDomain.CurrentDomain.Evidence, setup, pset, CreateStrongName(Assembly.GetExecutingAssembly()));
    8485      Type applicationManagerType = typeof(DefaultApplicationManager);
Note: See TracChangeset for help on using the changeset viewer.