Changeset 1936 for trunk/sources/HeuristicLab.PluginInfrastructure
- Timestamp:
- 05/28/09 17:26:51 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.PluginInfrastructure
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.PluginInfrastructure/PluginManager.cs ¶
r1755 r1936 225 225 setup.ApplicationBase = AppDomain.CurrentDomain.SetupInformation.ApplicationBase; 226 226 AppDomain applicationDomain = AppDomain.CreateDomain(friendlyName, AppDomain.CurrentDomain.Evidence, setup, pset, CreateStrongName(Assembly.GetExecutingAssembly())); 227 228 227 Runner remoteRunner = (Runner)applicationDomain.CreateInstanceAndUnwrap(typeof(Runner).Assembly.GetName().Name, typeof(Runner).FullName); 229 228 NotifyListeners(PluginManagerAction.Initializing, "All plugins"); 230 229 231 //if (assemblyFiles != null && assemblyFiles.Count > 0)232 //remoteRunner.LoadPlugins(assemblyFiles);230 if (assemblyFiles != null && assemblyFiles.Count > 0) 231 remoteRunner.LoadPlugins(assemblyFiles); 233 232 234 233 //if (depPlugins != null && depPlugins.Count > 0) { 235 remoteRunner.LoadPlugins(ActivePlugins);234 //remoteRunner.LoadPlugins(ActivePlugins); 236 235 //} 237 NotifyListeners(PluginManagerAction.Initialized, "All plugins"); 236 NotifyListeners(PluginManagerAction.Initialized, "All plugins"); 238 237 return applicationDomain; 239 238 } -
TabularUnified trunk/sources/HeuristicLab.PluginInfrastructure/Runner.cs ¶
r1666 r1936 47 47 /// <param name="plugins">bytearray of all plugins that should be loaded</param> 48 48 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 } 51 52 } 52 53
Note: See TracChangeset
for help on using the changeset viewer.