Changeset 886
- Timestamp:
- 12/02/08 19:42:00 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Core/Core.cs
r882 r886 89 89 //clientCommunicator.LoginAsync(ConfigurationManager.GetInstance().GetClientInfo()); 90 90 91 Heartbeat beat = new Heartbeat { Interval = 5000 };91 Heartbeat beat = new Heartbeat { Interval = 30000 }; 92 92 beat.StartHeartbeat(); 93 93 … … 154 154 bool sandboxed = false; 155 155 156 AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.JobId.ToString(), sandboxed); 156 PluginManager.Manager.Initialize(); 157 AppDomain appDomain = PluginManager.Manager.CreateAndInitAppDomainWithSandbox(e.Result.JobId.ToString(), sandboxed, typeof(TestJob)); 157 158 158 159 appDomains.Add(e.Result.JobId, appDomain); -
trunk/sources/HeuristicLab.PluginInfrastructure/PluginManager.cs
r882 r886 160 160 } 161 161 162 public AppDomain CreateAndInitAppDomainWithSandbox(string friendlyName, bool sandboxed ) {162 public AppDomain CreateAndInitAppDomainWithSandbox(string friendlyName, bool sandboxed, Type jobType) { 163 163 164 164 PermissionSet pset; … … 176 176 Runner remoteRunner = (Runner)applicationDomain.CreateInstanceAndUnwrap(typeof(Runner).Assembly.GetName().Name, typeof(Runner).FullName); 177 177 NotifyListeners(PluginManagerAction.Initializing, "All plugins"); 178 if (remoteLoader != null) { 179 remoteRunner.LoadPlugins(remoteLoader.ActivePlugins); 180 } else if (LoadedPlugins != null && LoadedPlugins.Count > 0) { 181 remoteRunner.LoadPlugins(LoadedPlugins); 178 179 DiscoveryService dService = new DiscoveryService(); 180 PluginInfo jobPlugin = dService.GetDeclaringPlugin(jobType); 181 182 List<PluginInfo> depPlugins = GetDependentPlugins(jobPlugin); 183 184 if (depPlugins != null && depPlugins.Count > 0) { 185 remoteRunner.LoadPlugins(depPlugins); 182 186 } 183 187 NotifyListeners(PluginManagerAction.Initialized, "All plugins"); -
trunk/sources/HeuristicLab.PluginInfrastructure/Properties/AssemblyInfo.frame
r581 r886 24 24 using System.Runtime.InteropServices; 25 25 using HeuristicLab.PluginInfrastructure; 26 using System.Security; 26 27 27 28 // General Information about an assembly is controlled through the following … … 36 37 [assembly: AssemblyTrademark("")] 37 38 [assembly: AssemblyCulture("")] 39 [assembly: AllowPartiallyTrustedCallers] 38 40 39 41 // Setting ComVisible to false makes the types in this assembly not visible -
trunk/sources/HeuristicLab.PluginInfrastructure/Runner.cs
r29 r886 24 24 using System.Text; 25 25 using System.Reflection; 26 using System.Security.Permissions; 27 using System.Security; 26 28 27 29 namespace HeuristicLab.PluginInfrastructure { … … 29 31 30 32 public void LoadPlugins(ICollection<PluginInfo> plugins) { 33 //FileIOPermission fileperm = new FileIOPermission(FileIOPermissionAccess.AllAccess, @"C:\Program Files\HeuristicLab 3.0\plugins\"); 34 //fileperm.Assert(); 31 35 foreach(PluginInfo pluginInfo in plugins) { 32 36 foreach(string assemblyName in pluginInfo.Assemblies) { … … 34 38 } 35 39 } 40 //CodeAccessPermission.RevertAssert(); 36 41 PluginManager.Manager.LoadedPlugins = plugins; 37 42 }
Note: See TracChangeset
for help on using the changeset viewer.