- Timestamp:
- 07/29/08 18:05:18 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Operators/OnGridProcessor.cs
r398 r403 28 28 using HeuristicLab.CEDMA.DB.Interfaces; 29 29 using System.ServiceModel; 30 using HeuristicLab.CEDMA.Core;31 30 32 31 namespace HeuristicLab.CEDMA.Operators { … … 48 47 long agentId = scope.GetVariableValue<IntData>("AgentId", true).Data; 49 48 50 Agent agent = new Agent();51 foreach(IOperator op in operatorGraph.Operators) {52 agent.OperatorGraph.AddOperator(op);53 }54 agent.OperatorGraph.InitialOperator = operatorGraph.InitialOperator;55 56 49 NetTcpBinding binding = new NetTcpBinding(); 57 50 binding.MaxReceivedMessageSize = 10000000; // 10Mbytes … … 61 54 using(ChannelFactory<IDatabase> factory = new ChannelFactory<IDatabase>(binding)) { 62 55 IDatabase database = factory.CreateChannel(new EndpointAddress(serverUrl)); 63 long id = database.InsertAgent(agentId, null, DbPersistenceManager.Save(agent));56 long id = database.InsertAgent(agentId, null, PersistenceManager.SaveToGZip(operatorGraph)); 64 57 database.UpdateAgent(id, ProcessStatus.Waiting); 65 58 }
Note: See TracChangeset
for help on using the changeset viewer.