Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4912


Ignore:
Timestamp:
11/23/10 18:14:06 (14 years ago)
Author:
cneumuel
Message:

#1297 fixed sandboxmanager fails to load plugins properly

File:
1 edited

Legend:

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

    r4482 r4912  
    5555
    5656    #region ISandboxManager Members
    57 
    5857    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) {
    6458      PermissionSet pset;
    6559
     
    9286      PluginManager pm = new PluginManager(name);
    9387      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();
    9690      applicationManager.PrepareApplicationDomain(apps, plugins);
    97       //if (files != null && files.Count() > 0)
    98       //applicationManager.LoadAssemblies(files);
    9991      return applicationDomain;
    10092    }
    101 
    10293    #endregion
    10394  }
Note: See TracChangeset for help on using the changeset viewer.