Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/28/09 17:26:51 (15 years ago)
Author:
kgrading
Message:

switchback to dynamic loading (#653)

Location:
trunk/sources/HeuristicLab.PluginInfrastructure
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.PluginInfrastructure/PluginManager.cs

    r1755 r1936  
    225225      setup.ApplicationBase = AppDomain.CurrentDomain.SetupInformation.ApplicationBase;     
    226226      AppDomain applicationDomain = AppDomain.CreateDomain(friendlyName, AppDomain.CurrentDomain.Evidence, setup, pset, CreateStrongName(Assembly.GetExecutingAssembly()));
    227                      
    228227      Runner remoteRunner = (Runner)applicationDomain.CreateInstanceAndUnwrap(typeof(Runner).Assembly.GetName().Name, typeof(Runner).FullName);
    229228      NotifyListeners(PluginManagerAction.Initializing, "All plugins");
    230229
    231       //if (assemblyFiles != null && assemblyFiles.Count > 0)
    232       //  remoteRunner.LoadPlugins(assemblyFiles);
     230      if (assemblyFiles != null && assemblyFiles.Count > 0)
     231        remoteRunner.LoadPlugins(assemblyFiles);
    233232     
    234233      //if (depPlugins != null && depPlugins.Count > 0) {       
    235         remoteRunner.LoadPlugins(ActivePlugins);
     234        //remoteRunner.LoadPlugins(ActivePlugins);
    236235      //}
    237       NotifyListeners(PluginManagerAction.Initialized, "All plugins");
     236      NotifyListeners(PluginManagerAction.Initialized, "All plugins");   
    238237      return applicationDomain;
    239238    }
  • trunk/sources/HeuristicLab.PluginInfrastructure/Runner.cs

    r1666 r1936  
    4747    /// <param name="plugins">bytearray of all plugins that should be loaded</param>
    4848    public void LoadPlugins(ICollection<byte[]> plugins) {
    49       foreach (byte[] plugin in plugins)
    50         Assembly.Load(plugin);
     49      foreach (byte[] plugin in plugins) {
     50        Assembly.Load(plugin);       
     51      }
    5152    }
    5253
Note: See TracChangeset for help on using the changeset viewer.