Changeset 6357 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/WcfService.cs
- Timestamp:
- 06/05/11 22:35:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Slave/3.4/WcfService.cs
r6004 r6357 23 23 using System.Collections.Generic; 24 24 using HeuristicLab.Common; 25 using HeuristicLab.Hive; 26 using HeuristicLab.PluginInfrastructure; 25 27 26 28 namespace HeuristicLab.Clients.Hive.SlaveCore { … … 29 31 /// WcfService class is implemented as a Singleton and works as a communication Layer with the Server 30 32 /// </summary> 31 public class WcfService : MarshalByRefObject {33 public class WcfService : MarshalByRefObject, IPluginProvider { 32 34 private static WcfService instance; 33 35 /// <summary> … … 62 64 } 63 65 64 public Guid AddChildJob(Guid parentJobId, Job job, JobData jobData) { 65 return CallHiveService(s => s.AddChildJob(parentJobId, job, jobData)); 66 public Guid AddChildJob(Guid parentJobId, Job job, IJob jobDataObject) { 67 return CallHiveService(s => { 68 JobData jobData = new JobData(); 69 IEnumerable<Type> types; 70 jobData.Data = PersistenceUtil.Serialize(jobDataObject, out types); 71 var plugins = new List<IPluginDescription>(); 72 PluginUtil.CollectDeclaringPlugins(plugins, types); 73 job.PluginsNeededIds = PluginUtil.GetPluginDependencies(s, new List<Plugin>(), new List<Plugin>(), plugins, false); 74 return s.AddChildJob(parentJobId, job, jobData); 75 }); 66 76 } 67 77
Note: See TracChangeset
for help on using the changeset viewer.